This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Link problems
- From: bjorn rohde jensen <bjensen at fastmail dot fm>
- To: Jarmo <modem626 at kymp dot net>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 08 Aug 2002 15:45:27 +0200
- Subject: Re: Link problems
- References: <200208081624.26563.modem626@kymp.net>
- Reply-to: bjensen at fastmail dot fm
Hi Jarmo,
You can not in general crosslink object code generated by
different compilers. You should use one and only one
compiler to create an application. One does usually not
have to rebuild the system C libraries, but C++ libs etc
definitely should be.
The unresolved symbols are probably due to different
name mangling schemes employed by gcc-2.96, which is not
actually an official gcc release, and gcc-3.0.4. This is
done to protect users from linking incompatible object
files to create applications with spectacularly odd behaviour,
such as random core dumps despite code correctness and so on.
Yours sincerely,
Bjorn