Linker error building V 3.0.0 for MODM7AE70

Discussion to talk about software related topics only.
Post Reply
ecasey
Posts: 164
Joined: Sat Mar 26, 2011 9:34 pm

Linker error building V 3.0.0 for MODM7AE70

Post 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
ecasey
Posts: 164
Joined: Sat Mar 26, 2011 9:34 pm

Re: Linker error building V 3.0.0 for MODM7AE70

Post 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.
User avatar
Forrest
Posts: 283
Joined: Wed Apr 23, 2008 10:05 am

Re: Linker error building V 3.0.0 for MODM7AE70

Post 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.
Attachments
Properties-for-project.png
Properties-for-project.png (138.88 KiB) Viewed 2039 times
Forrest Stanley
Project Engineer
NetBurner, Inc

NetBurner Learn Articles: http://www.netburner.com/learn
Post Reply