C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 10th, 2003, 05:35 PM
vsk vsk is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 6 vsk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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

Reply With Quote
  #2  
Old June 11th, 2003, 04:24 PM
balance balance is offline
.
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 296 balance User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > gcc compiler problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT