Hello Terry,
I have a little while ago posted a response to Bas.
Here’s a screen capture of the last of the messages. As I mentioned, there is “yards” of the stuffL
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestOutput.cpp:184: undefined reference to `__Unwind_SjLj_Resume'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestOutput.cpp:185: undefined reference to `__Unwind_SjLj_Resume'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestOutput.cpp:186: undefined reference to `__Unwind_SjLj_Resume'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestOutput.cpp:186: undefined reference to `__Unwind_SjLj_Unregister'
lib/libCppUTest.a(TestOutput.o): In function `_ZN10TestOutput26printFileAndLineForFailureERK11TestFailure':
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestOutput.cpp:190: undefined reference to `___gxx_personality_sj0'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestOutput.cpp:190: undefined reference to `__Unwind_SjLj_Register'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestOutput.cpp:191: undefined reference to `__Unwind_SjLj_Resume'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestOutput.cpp:192: undefined reference to `__Unwind_SjLj_Resume'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestOutput.cpp:192: undefined reference to `__Unwind_SjLj_Unregister'
lib/libCppUTest.a(TestOutput.o): In function `_ZN10TestOutput52printErrorInFileOnLineFormattedForWorkingEnvironmentE12SimpleStringi':
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestOutput.cpp:210: undefined reference to `___gxx_personality_sj0'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestOutput.cpp:210: undefined reference to `__Unwind_SjLj_Register'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestOutput.cpp:212: undefined reference to `__Unwind_SjLj_Resume'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestOutput.cpp:214: undefined reference to `__Unwind_SjLj_Resume'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestOutput.cpp:214: undefined reference to `__Unwind_SjLj_Unregister'
lib/libCppUTest.a(UtestPlatform.o): In function `_Z41PlatformSpecificRunTestInASeperateProcessP10UtestShellP10TestPluginP10TestResult':
/cygdrive/h/TDD-Frameworks-CppUTest/src/Platforms/Gcc/UtestPlatform.cpp:77: undefined reference to `___gxx_personality_sj0'
/cygdrive/h/TDD-Frameworks-CppUTest/src/Platforms/Gcc/UtestPlatform.cpp:77: undefined reference to `__Unwind_SjLj_Register'
/cygdrive/h/TDD-Frameworks-CppUTest/src/Platforms/Gcc/UtestPlatform.cpp:89: undefined reference to `__Unwind_SjLj_Resume'
/cygdrive/h/TDD-Frameworks-CppUTest/src/Platforms/Gcc/UtestPlatform.cpp:91: undefined reference to `__Unwind_SjLj_Resume'
/cygdrive/h/TDD-Frameworks-CppUTest/src/Platforms/Gcc/UtestPlatform.cpp:95: undefined reference to `__Unwind_SjLj_Unregister'
lib/libCppUTest.a(TestHarness_c.o): In function `CHECK_EQUAL_C_INT_LOCATION':
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestHarness_c.cpp:45: undefined reference to `___gxx_personality_sj0'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestHarness_c.cpp:45: undefined reference to `__Unwind_SjLj_Register'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestHarness_c.cpp:46: undefined reference to `__Unwind_SjLj_Resume'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestHarness_c.cpp:46: undefined reference to `__Unwind_SjLj_Resume'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestHarness_c.cpp:46: undefined reference to `__Unwind_SjLj_Unregister'
lib/libCppUTest.a(TestHarness_c.o): In function `CHECK_EQUAL_C_CHAR_LOCATION':
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestHarness_c.cpp:55: undefined reference to `___gxx_personality_sj0'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestHarness_c.cpp:55: undefined reference to `__Unwind_SjLj_Register'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestHarness_c.cpp:56: undefined reference to `__Unwind_SjLj_Resume'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestHarness_c.cpp:56: undefined reference to `__Unwind_SjLj_Resume'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/TestHarness_c.cpp:56: undefined reference to `__Unwind_SjLj_Unregister'
lib/libCppUTest.a(CommandLineTestRunner.o): In function `_ZN21CommandLineTestRunner11RunAllTestsEiPPKc':
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/CommandLineTestRunner.cpp:52: undefined reference to `___gxx_personality_sj0'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/CommandLineTestRunner.cpp:52: undefined reference to `__Unwind_SjLj_Register'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/CommandLineTestRunner.cpp:68: undefined reference to `__Unwind_SjLj_Resume'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/CommandLineTestRunner.cpp:68: undefined reference to `__Unwind_SjLj_Unregister'
lib/libCppUTest.a(CommandLineTestRunner.o): In function `_ZN21CommandLineTestRunner15runAllTestsMainEv':
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/CommandLineTestRunner.cpp:72: undefined reference to `___gxx_personality_sj0'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/CommandLineTestRunner.cpp:72: undefined reference to `__Unwind_SjLj_Register'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/CommandLineTestRunner.cpp:75: undefined reference to `__Unwind_SjLj_Resume'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/CommandLineTestRunner.cpp:82: undefined reference to `__Unwind_SjLj_Resume'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/CommandLineTestRunner.cpp:82: undefined reference to `__Unwind_SjLj_Unregister'
lib/libCppUTest.a(CommandLineTestRunner.o): In function `_ZN21CommandLineTestRunner17initializeTestRunEv':
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/CommandLineTestRunner.cpp:86: undefined reference to `___gxx_personality_sj0'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/CommandLineTestRunner.cpp:86: undefined reference to `__Unwind_SjLj_Register'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/CommandLineTestRunner.cpp:87: undefined reference to `__Unwind_SjLj_Resume'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/CommandLineTestRunner.cpp:88: undefined reference to `__Unwind_SjLj_Resume'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/CommandLineTestRunner.cpp:90: undefined reference to `__Unwind_SjLj_Unregister'
lib/libCppUTest.a(CommandLineTestRunner.o): In function `_ZN21CommandLineTestRunner11runAllTestsEv':
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/CommandLineTestRunner.cpp:94: undefined reference to `___gxx_personality_sj0'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/CommandLineTestRunner.cpp:94: undefined reference to `__Unwind_SjLj_Register'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/CommandLineTestRunner.cpp:104: undefined reference to `__Unwind_SjLj_Resume'
/cygdrive/h/TDD-Frameworks-CppUTest/src/CppUTest/CommandLineTestRunner.cpp:107: undefined reference to `__Unwind_SjLj_Unregister'
collect2: ld returned 1 exit status
From: cppu...@googlegroups.com [mailto:cppu...@googlegroups.com] On Behalf Of Terry Yin
Sent: Sunday, September 16, 2012 6:53 PM
To: cppu...@googlegroups.com
Subject: Re: Linker Problems
Hi,
The old mail became a little messy and I cannot find out what really is the problem.
I have the latest cygwin & cpputest, they worked just fine. If you describe you problem again I may help since I have everything ready here.
br, Terry
On Sun, Sep 16, 2012 at 2:49 PM, Bas Vodde <ba...@odd-e.com> wrote:
HI RM,
Unfortunately, I don't have any cygwin this week, I'll have some cygwin machines next week and will check.
What I meant is that the linker option -lstdc++ might be missing. Don't think so as it would lead to more linker errors, but was the only thing I could think of just by looking at your mail. Will try to look at it next week.
Thanks!
Bas
[RM] Removed earlier conversation
Hello Terry,
Sorry to say the situation is very much what it was. The test harness works quite well in Visual Studio. So, I am developing my code in Visual Studio with CppUTest and then “porting” the code, as and when required, to Eclipse. Bit of a bind but still …