Page 1 of 1

Linker error building V 3.0.0 for MODM7AE70

Posted: Thu Jan 17, 2019 6:01 pm
by ecasey
Trying to port an program for this platform, I get the following error:

final link failed: Bad value LoadCell3 C/C++ Problem
LoadCell3.elf: hidden symbol `__dso_handle' isn't defined LoadCell3 C/C++ Problem
make: *** [makefile:62: LoadCell3.elf] Error 1 LoadCell3 C/C++ Problem
undefined reference to `__dso_handle' LoadCell3 line 71, external location: \home\ubuntu\build\.build\HOST-mingw32\arm-unknown-eabi\src\gcc\libstdc++-v3\src\c++11\system_error.cc C/C++ Problem
undefined reference to `__dso_handle' LoadCell3 line 75, external location: \home\ubuntu\build\.build\HOST-mingw32\arm-unknown-eabi\src\gcc\libstdc++-v3\src\c++11\cxx11-ios_failure.cc C/C++ Problem


It builds without any errors on the MOD5441X target platform.

Any idea how to resolve this error?

Ed

Re: Linker error building V 3.0.0 for MODM7AE70

Posted: Fri Jan 18, 2019 8:07 am
by ecasey
More on this...

I loaded the SimpleHtml project and compiled it. It worked fine.

I added the following code after the other #includes:

Code: Select all

#include <sstream>
std::ostringstream Reading;
and I get the error: "undefined reference to `__dso_handle'" and it fails.

Also, #include <iostream> and using std::cout gives me the same error.

Re: Linker error building V 3.0.0 for MODM7AE70

Posted: Fri Jan 18, 2019 11:19 am
by Forrest
ecasey wrote: Fri Jan 18, 2019 8:07 am and I get the error: "undefined reference to `__dso_handle'" and it fails.
Looks like we missed the standard c++ library inclusion. While I fixed this on our side and it will be fixed in 3.0.1, you can fix it on your side by right clicking on your project and going to Properties. See included image. Basically, you need to add stdc++ as an include library.