Altera_Forum
Honored Contributor
19 years agoc++ version of twothreads example
Hi Forum,
I have been developing applications using eCos and the NiosII IDE for a while now, and wish to develop in c++. I started with the twothreads example and had it up and running in no time. I simply changed the file name from twothreads.c to twothreads.cxx to see what would happen. It compiled OK, but would not run properly. The line of execution appeared to get stuck before the threads got a chance to run (or something). Is there something fundamental that I am missing here? Do I have to indicate the c functions using some construction like: extern "c" { void function_name(void);} Or is there a more basic problem? Thanks in advance for any help provided. peter