question

Upvotes
Accepted
1 0 0 1

Link Error in Elektron-SDK-1.4

All of these appear to be internal to the Elektron-SDK. Not sure why this would ship when it doesn't compile out of the box. Anyone have any idea before i start debugging Elektron code?


[ 48%] Linking CXX executable ../../../../../Elektron-SDK-1.4.0.L1.linux.rrg/Cpp-C/Eta/Executables/RHEL6_64_GCC444/Optimized/rsslDataTest

CMakeFiles/rsslDataTest.dir/rsslDataTest.C.o: In function `bufferEncDecTest_bufferEncDecTest_Test::TestBody()':

rsslDataTest.C:(.text+0x7e6): undefined reference to `_ZN7testing8internal30GetBoolAssertionFailureMessageB5cxx11ERKNS_15AssertionResultEPKcS5_S5_'

CMakeFiles/rsslDataTest.dir/rsslDataTest.C.o: In function `bufferInterfaceEncDecTest_bufferInterfaceEncDecTest_Test::TestBody()':

rsslDataTest.C:(.text+0xb39): undefined reference to `_ZN7testing8internal30GetBoolAssertionFailureMessageB5cxx11ERKNS_15AssertionResultEPKcS5_S5_'

CMakeFiles/rsslDataTest.dir/rsslDataTest.C.o: In function `lengthSpecifiedConversionTest_lengthSpecifiedConversionTest_Test::TestBody()':

rsslDataTest.C:(.text+0xf78): undefined reference to `_ZN7testing8internal30GetBoolAssertionFailureMessageB5cxx11ERKNS_15AssertionResultEPKcS5_S5_'

CMakeFiles/rsslDataTest.dir/rsslDataTest.C.o: In function `nonLengthSpecifiedConversionTest_nonLengthSpecifiedConversionTest_Test::TestBody()':

rsslDataTest.C:(.text+0x1598): undefined reference to `_ZN7testing8internal30GetBoolAssertionFailureMessageB5cxx11ERKNS_15AssertionResultEPKcS5_S5_'

rsslDataTest.C:(.text+0x18b5): undefined reference to `_ZN7testing8internal30GetBoolAssertionFailureMessageB5cxx11ERKNS_15AssertionResultEPKcS5_S5_'

CMakeFiles/rsslDataTest.dir/rsslDataTest.C.o:rsslDataTest.C:(.text+0x1ab7): more undefined references to `_ZN7testing8internal30GetBoolAssertionFailureMessageB5cxx11ERKNS_15AssertionResultEPKcS5_S5_' follow

CMakeFiles/rsslDataTest.dir/rsslDataTest.C.o: In function `testing::AssertionResult testing::internal::CmpHelperEQFailure<unsigned char, unsigned int>(char const*, char const*, unsigned char const&, unsigned int const&)':

rsslDataTest.C:(.text._ZN7testing8internal18CmpHelperEQFailureIhjEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal18CmpHelperEQFailureIhjEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x8cf): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'

CMakeFiles/rsslDataTest.dir/rsslDataTest.C.o: In function `testing::AssertionResult testing::internal::CmpHelperEQFailure<long long, long>(char const*, char const*, long long const&, long const&)':

rsslDataTest.C:(.text._ZN7testing8internal18CmpHelperEQFailureIxlEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal18CmpHelperEQFailureIxlEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x8cf): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'

collect2: error: ld returned 1 exit status


elektronrefinitiv-realtimeelektron-sdkc++
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
261 1 2 3

These errors appear to be related to the Googletest macros not getting recognized by the linker. Is this build using the default version of Googletest? ESDK is not built with C++11, and Googletest has some weird interactions that has prompted them to create a non-backwards compatible version that supports only C++11 on.

In addition, if you don't need the unit test tools, they can be removed from the build by setting the option -DBUILD_UNIT_TESTS=OFF when generating the build files with cmake.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
1 0 0 1

I'm not using googletest directly. thanks i'll give that option a try

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
1 0 0 1

that worked, thanks

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea