June 10th, 2003, 06:35 PM
Join Date: May 2002
Time spent in forums: < 1 sec
Reputation Power: 0
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