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

    Join Date
    May 2002
    Posts
    6
    Rep Power
    0

    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. #2
  3. No Profile Picture
    .
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2002
    Posts
    296
    Rep Power
    12
    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