Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help! Using Different version GCC generate different object file (for same source file)

1 view
Skip to first unread message

xugang

unread,
Nov 22, 2009, 1:13:58 AM11/22/09
to
Dear all:

The title is confusing, i try to explain here clearly:

There are two server we using now: one is linux server with the GCC
version (3.4.5);

the other one is the Sun server with GCC version (2.95.3)

There is one application which we will filter some message infor
through the object file.

Now, we find that using higher version GCC compiled the same source
file, we can't filter

the message info we wanted. But using the other server with lower
version GCC, the appl

can be worked normally.

We checked the object file and found that the object file which
generated by higher ver

GCC has no info we wanted, but the object file generated by lower ver
GCC has the info

we wanted.

My question is that:

1> Can we modify the generated object file content through
adjusting some compile

option with higher version GCC to be same with the object file which
generated by lower

version GCC? If so, which compile option will be worked?

2> Is there other way we can try without downgrade the GCC
version?


Thanks all!

BR.

Gary R. Schmidt

unread,
Nov 22, 2009, 2:26:36 AM11/22/09
to
xugang wrote:
[SNIP gcc confabulation...]

Have a look at the gcc configuration files on the machines.

gcc --v tells you where they are.

Cheers,
Gary B-)

Dave

unread,
Nov 22, 2009, 6:40:50 AM11/22/09
to

Or if you want to save wear and tear of your keyboard,

gcc -v

will do too!!!

--
I respectfully request that this message is not archived by companies as
unscrupulous as 'Experts Exchange' . In case you are unaware,
'Experts Exchange' take questions posted on the web and try to find
idiots stupid enough to pay for the answers, which were posted freely
by others. They are leeches.

xugang

unread,
Nov 22, 2009, 10:40:16 PM11/22/09
to

Hi:

Could you give some suggestions on which options will be worked?

thanks!

On 11月22日, 下午7时40分, Dave <f...@coo.com> wrote:
> Gary R. Schmidt wrote:
> > xugang wrote:
> > [SNIPgccconfabulation...]
>
> > Have a look at thegccconfiguration files on the machines.
>

> >gcc--v tells you where they are.

0 new messages