I always wondered why the GPC distribution contained a different libgcc.a than the GCC distribution. I assumed that the GPC version had some extra stuff in it.
However, it appears that the latest GPC version is incompatible with GNU C++.
I've just spent all morning trying to make the GAWS package. Every time I tried to make any examples, I got heaps of linker errors.
Eventually, in desparation, I replaced libgcc.a with the copy in GCC281b.ZIP. Suddenly all my linker errors dissappeared.
I also note that the libgcc.a in the latest beta version of GPC is considerably shorter than the ones in previous versions.
So what is the story with the GPC version of libgcc.a?
thanks Russell
BTW. I'm finally subscribed to this mailing list.
Hi!
A long time ago, Thamm, Russell wrote:
However, it appears that the latest GPC version is incompatible with GNU C++.
I think I finally found out what had happened: Due to lack of disk space, I removed the source tree of the C++ compiler before building GPC. Maybe this source adds components to `libgcc.a' which are essential for compiling C++ programs.
Moral: Use `libgcc.a' from the GCC distribution. :-/
Peter
Maurice Lombardi wrote:
Peter Gerwinski a écrit:
Moral: Use `libgcc.a' from the GCC distribution. :-/
Really ? I was thinking that gpc made some changes to libgcc.a
It doesn't. GPC has `libgpc.a' instead.
Otherwise why to distribute an other copy in the binaries ?
I don't know. #-) It should have been identical to GCC's one. It it came out differently, then because of some different options during compilation - and because of an error since that version of `libgcc.a' did not work.
Peter
Peter Gerwinski a écrit:
Moral: Use `libgcc.a' from the GCC distribution. :-/
Really ? I was thinking that gpc made some changes to libgcc.a Otherwise why to distribute an other copy in the binaries ?