1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2002
    Rep Power

    gcc compiler problem

    I have a code which I have compiled on solaris 2.5.1 (gcc solaris 8(gcc 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
  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2002
    Rep Power
    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.

IMN logo majestic logo threadwatch logo seochat tools logo