[arm-gnu] undefined reference to _init

Freddie Chopin freddie_chopin at op.pl
Thu Oct 18 06:24:24 UTC 2012


You could try downloading one of my example projects for ARM 
microcontrollers from my website - www.freddiechopin.info > Download > 
ARM > examples . These have linker scripts, Makefiles and startups that 
REALLY work without any voodoo with strange functions from strange 
libraries. They have what you need, which is C++ 
initialization/deinitialization using __libc_init_array and 
__libc_fini_array - you could use that as a reference point, as I see 
you use something bigger than microcontroller...

Then you can switch to some other toolchain, for example linaro, as they 
actually provide support for their releases via launchpad answers - 
https://launchpad.net/gcc-arm-embedded

In case of doubts - ask (;

4\/3!!



More information about the arm-gnu mailing list