Forum Discussion
Altera_Forum
Honored Contributor
20 years agolinker question
hello, In my project, some global variables are placed in a library. These variables are used in a class that also has a global instance in that library. The constructor of that class places po...
Altera_Forum
Honored Contributor
20 years agoHi Stefaan,
> most of them seems to be multiple definitions. Understood. I tried this myself -- when I wrap the library with the "whole" and "no-whole" options I don't have any problems. E.g. for libfoobar.a : $ nios2-elf-gcc -o test -Wl,--whole-archive -lfoobar -Wl,--no-whole-archive main.c Regards, --Scott