I try to compile simple C++ program. Eventually I reduced it to:
Code: Select all
class CD {
public:
~CD(){x=0;}
int x;
};
CD cd;
which gives me the error:
Compiling ../tmp/1.cpp
Linking build/ch.elf
build/obj/1.o: In function `__static_initialization_and_destruction_0':
.../chibios/../tmp/1.cpp:7: undefined reference to `__dso_handle'
collect2: ld returned 1 exit status
make: *** [build/ch.elf] Error 1
I use ChibiOS 2.4.0 and code sourcery light 2011.03
Any ideas?