June 10th, 2003, 05:35 PM
gcc compiler problem
I have a code which I have compiled on solaris 2.5.1 (gcc 188.8.131.52)and solaris 8(gcc 184.108.40.206) platform using same compile options.
When I compile & run my program on 2.5.1 it is running without any problem and also it initializes all the structure variables etc properly.
But when I compile and run the same code on Solaris 8 it compiles properly but while running it is not initalizing sme of the structure elements.
Following is the scenario
funcA(strcture A);/* This is the initializing function which sets all the structure element values.And within this function the values are getting properly populated in both the platforms*/
when I print the values of the struture elemnts A.c1 is getting properly populated but A.c4 is not getting populated.
Can anybody help me out with this .
Following are the compiler option that I am using
gcc -g $(CF) -Wmissing-prototypes -I../include
June 11th, 2003, 04:24 PM
i don't know, but there's an email help list on the gnu.gcc.org site which i found very useful when i was attempting to install gnu gcc. there's people who know the ins and outs of gcc related stuff on there. maybe give that a go.