Forum Discussion
Altera_Forum
Honored Contributor
21 years agoC++ global objects
The NiosII linker fails to call constructors for static global objects. A simple example: test.h:# include <math.h> const double PI = 3.14159265; class Circle { protected: ...
Altera_Forum
Honored Contributor
21 years agoThanks! Adding -mctors-in-init to LDFLAGS did the trick. Can't find this compiler option documented anywhere. Is it an arch specific option ?