My cpp application runs fine on solaris & hp-ux but crashes on Linux.The application is crashing at insert() function of a map. The map variable is the static member variable of a class. But when i write the sample pgm with the same scenario it works fine.
I use following flags while compiling application.
CFLAGS_STATIC_LINKING = -Wall
LD_FLAGS_STATIC_LINKING = -O3 -nostdlib
TMap.cpp is the sample pgm which gives the same logic used in my cpp application. I use the specified flags while compilation of application and not the above sample pgms.
I wont be able to provide the exact compile & link lines but they are like as below:
compile line for the file where application core dumps:
g++ -DLINUX -D_DEBUG -g -D_USE_STLQ_ -Wall -I../include/ -I/usr/local/include/ -I/usr/include/ -I../include/<lib1> -I../include/<lib2>/include -c ../src/<file>.cpp