|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
gcc compiler problem
Hi,
I have a code which I have compiled on solaris 2.5.1 (gcc 2.7.2.2)and solaris 8(gcc 3.2.3.0) 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 main() { 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*/ printf(A.c1); ...... ..... printf(A.c4); } 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 |
|
#2
|
|||
|
|||
|
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.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > gcc compiler problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|