Test execution: error linking test executable for Test unit for selected sources. Error

fatmanur61fatmanur61 Posts: 70

What is this error, what is the resolution for it?
the error "Test execution: error linking test executable for Test unit for selected sources." comes while running the unit tests.


  • fatmanur61fatmanur61 Posts: 70
    edited May 14

    The linker errors always like symbol xxx(variable name) multiply defined (by controller. o and harness_conttoller.o) .always harness_ is written in errors. What is harness? Related screen shot added to question

  • brian_nucklesbrian_nuckles Posts: 29 admin

    Harness is part of the unit testing runtime environment generated by C++test. Often this error means that some library or set of symbols has been included twice which is why you see the output as 'multiple definition'. You will want to be sure that files or symbols that are part of the project's compilation are not also linked in at runtime when running your unit tests. You can do this by checking your project's Parasoft build settings by right clicking your project and selecting 'Properties' then navigating to Parasoft > Build Settings and checking for any extra inclusions on the build and link lines.

  • fatmanur61fatmanur61 Posts: 70
    edited May 16

    @brian_nuckles thanks for answer. My build setting is added to question I think I have no extra inclusion. What should I do now?

  • fatmanur61fatmanur61 Posts: 70

    @brian_nuckles this problem is urgent for us? Could you give me a suggestion for solving this question?

  • brian_nucklesbrian_nuckles Posts: 29 admin

    @fatmanur61 For urgent issues you will want to create a case for our Technical Support team to investigate. They will most likely need additional information to be able to debug and resolve your current behavior. Please navigate here to create a case https://parasoft.force.com/customerportal/MyCases and a support team member will be in contact with you. Please be as detailed as possible and include any relevant error output from C++test.

Sign In or Register to comment.