Forum Discussion
Altera_Forum
Honored Contributor
14 years agoI made some progress with the Problem, linking of the pthead-lib is not correctly done by G++. I managed to improve the situation describe by Hag by adding the path to the pthread.a to the linker command.
It looks like this:
nios2-linux-c++ -o ijpis -elf2flt="-s 65536" include/tinyxml.o include/tinyxmlparser.o include/tinyxmlerror.o include/tinystr.o opt/nios2/lib/libpthread.a
After that, it is able to link the invocation of pthread_join() and the objectdumb shows:
0001b170 g F .text 0000010c pthread_create
The situation is improved, but after starting the program it still hangs after pthread_create... A note at the end: I use the gcc version 3.4.6. I haven't tried to use another, yet. Best regards