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 agoDo you have the compiler option -mctors-in-init? You might also want the library -lsupc++