------- Comment #3 from sarveshwarac at india dot tejasnetworks dot com 2010-02-09 13:46 ------- I have used the following preprocessor options: -DTHREADED, -D_REENTRANT. I tried with -pthread instead of -lpthread, but still the problem is seen. using namespace std(;) line is present in my fccMain.cpp file after #include<iostream>.
There is no any c++ code in libfpp.so. I kept some xx_init(constructor) & xx_fini(destructor) functions across libfpp.so and libfcc.so files. I have also changed the linking order of .so's and tried with gcc and g++ linkers. Global/Static data initialization from libfpp.so is happening fine. But libfcc.so static data initialization is failing in ios_base::init::init(from iostream) function with the mentioned stack trace. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43005