public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Compatibility Between version 2.8.1 and 2.95.2
@ 2001-05-11  2:31 Ang Chin
  2001-05-11 17:20 ` Alexandre Oliva
  0 siblings, 1 reply; 6+ messages in thread
From: Ang Chin @ 2001-05-11  2:31 UTC (permalink / raw)
  To: gcc-help; +Cc: chinhai

Hi,

  When i tried to compile my project with g++ 2.95.2
(previously with g++ 2.8.1, and work fine), i got
error on some header files not found (generic.h,
sysent.h, ...)

  i did a comparison between both version's include
directory, version 2.8.1 has 182 header files, whereas
version 2.95.2 only has 132 header files.

  Where can i find the rest of the header files? OR,
what can i do to resolve this if my project are using
those missing header files?

  One last question, any compatibilities issue between
these two versions?

thanks in advance,
chinhai

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Compatibility Between version 2.8.1 and 2.95.2
  2001-05-11  2:31 Compatibility Between version 2.8.1 and 2.95.2 Ang Chin
@ 2001-05-11 17:20 ` Alexandre Oliva
  2001-05-14 20:47   ` Ang Chin
  0 siblings, 1 reply; 6+ messages in thread
From: Alexandre Oliva @ 2001-05-11 17:20 UTC (permalink / raw)
  To: Ang Chin; +Cc: gcc-help

On May 11, 2001, Ang Chin <chinhai@yahoo.com> wrote:

>   i did a comparison between both version's include
> directory, version 2.8.1 has 182 header files, whereas
> version 2.95.2 only has 132 header files.

>   Where can i find the rest of the header files?

Header files are generally in /usr/include, but GCC fixes some of them
that wouldn't compile with GCC or simply that are buggy, and stores
them in its own installation tree.  Those that don't require fixing
remain in /usr/include.  Perhaps you're running GCC on a machine that
doesn't have development header files?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Compatibility Between version 2.8.1 and 2.95.2
  2001-05-11 17:20 ` Alexandre Oliva
@ 2001-05-14 20:47   ` Ang Chin
  2001-05-15 18:06     ` Alexandre Oliva
  0 siblings, 1 reply; 6+ messages in thread
From: Ang Chin @ 2001-05-14 20:47 UTC (permalink / raw)
  To: Alexandre Oliva; +Cc: gcc-help

Hi,

  thanks for your info. i have another question:

  i compiled a library in Solaris2.5.1 and work with
example. When i port it to Linux 2.2.16-3smp, and
re-compile it, it create the archive (librw.a), but
when i link it with the previous example, i got the
folowing error,

  % g++ -c test.C
  % g++ -o test test.o -lrw -L(path where librw.a in)
  /usr/pkgs/2.95.2/bin/gld: final link failed: Bad
value
  collect2: ld returned 1 exit status.

  May i know what goes wrong?

thanks,
chinhai

--- Alexandre Oliva <aoliva@redhat.com> wrote:
> On May 11, 2001, Ang Chin <chinhai@yahoo.com> wrote:
> 
> >   i did a comparison between both version's
> include
> > directory, version 2.8.1 has 182 header files,
> whereas
> > version 2.95.2 only has 132 header files.
> 
> >   Where can i find the rest of the header files?
> 
> Header files are generally in /usr/include, but GCC
> fixes some of them
> that wouldn't compile with GCC or simply that are
> buggy, and stores
> them in its own installation tree.  Those that don't
> require fixing
> remain in /usr/include.  Perhaps you're running GCC
> on a machine that
> doesn't have development header files?
> 
> -- 
> Alexandre Oliva   Enjoy Guarana', see
> http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer                 
> aoliva@{cygnus.com, redhat.com}
> CS PhD student at IC-Unicamp       
> oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist    *Please* write to
> mailing lists, not to me


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Compatibility Between version 2.8.1 and 2.95.2
  2001-05-14 20:47   ` Ang Chin
@ 2001-05-15 18:06     ` Alexandre Oliva
  2001-05-16  0:17       ` Ang Chin
  0 siblings, 1 reply; 6+ messages in thread
From: Alexandre Oliva @ 2001-05-15 18:06 UTC (permalink / raw)
  To: Ang Chin; +Cc: gcc-help

On May 15, 2001, Ang Chin <chinhai@yahoo.com> wrote:

>   i compiled a library in Solaris2.5.1 and work with
> example. When i port it to Linux 2.2.16-3smp, and
> re-compile it, it create the archive (librw.a), but
> when i link it with the previous example, i got the
> folowing error,

Do you mean you've created the library using a Solaris tool-chain, and
now you're using it on GNU/Linux?  I don't think this is supposed to
work.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Compatibility Between version 2.8.1 and 2.95.2
  2001-05-15 18:06     ` Alexandre Oliva
@ 2001-05-16  0:17       ` Ang Chin
  2001-05-16  0:21         ` Alexandre Oliva
  0 siblings, 1 reply; 6+ messages in thread
From: Ang Chin @ 2001-05-16  0:17 UTC (permalink / raw)
  To: Alexandre Oliva; +Cc: gcc-help

hi,

  No, i re-built the library in the Linux machine,
i.e. re-compile the source code in Linux machine to
form the library, then develop an example to link with
the library created. However, i got the below error.
  "...gld: final link failed: Bad value"

--- Alexandre Oliva <aoliva@redhat.com> wrote:
> On May 15, 2001, Ang Chin <chinhai@yahoo.com> wrote:
> 
> >   i compiled a library in Solaris2.5.1 and work
> with
> > example. When i port it to Linux 2.2.16-3smp, and
> > re-compile it, it create the archive (librw.a),
> but
> > when i link it with the previous example, i got
> the
> > folowing error,
> 
> Do you mean you've created the library using a
> Solaris tool-chain, and
> now you're using it on GNU/Linux?  I don't think
> this is supposed to
> work.
> 
> -- 
> Alexandre Oliva   Enjoy Guarana', see
> http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer                 
> aoliva@{cygnus.com, redhat.com}
> CS PhD student at IC-Unicamp       
> oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist    *Please* write to
> mailing lists, not to me


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Compatibility Between version 2.8.1 and 2.95.2
  2001-05-16  0:17       ` Ang Chin
@ 2001-05-16  0:21         ` Alexandre Oliva
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2001-05-16  0:21 UTC (permalink / raw)
  To: Ang Chin; +Cc: gcc-help

On May 16, 2001, Ang Chin <chinhai@yahoo.com> wrote:

>   No, i re-built the library in the Linux machine,
> i.e. re-compile the source code in Linux machine to
> form the library, then develop an example to link with
> the library created. However, i got the below error.
>   "...gld: final link failed: Bad value"

Then, it's likely that you've found an assembler or a linker bug.  You
should report it to the maintainers of GNU binutils, after checking
that you've got the latest version of it.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-05-16  0:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-11  2:31 Compatibility Between version 2.8.1 and 2.95.2 Ang Chin
2001-05-11 17:20 ` Alexandre Oliva
2001-05-14 20:47   ` Ang Chin
2001-05-15 18:06     ` Alexandre Oliva
2001-05-16  0:17       ` Ang Chin
2001-05-16  0:21         ` Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).