Re: link problems in GCC 3.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The C++ name mangling has changed between versions 2.x and 3.x, so you won't 
be able to link code compiled with gcc 2.x with code compiled with gcc 3.x, 
no matter what. If you're not using third-party libraries, simply recompile 
your whole code. If you're using third-party libraries, either recompile them 
with gcc 3.3 (which might break older software that depends on them), or 
upgrade to slackware 9, which is based on gcc 3.2, and uses compatible 
libraries.

On Tuesday 22 July 2003 02:14, Miguel Bernal wrote:
> Hi
>
>   I upgrade my GCC from 2.95 to 3.3, I actually use Slackware 8.1,
> when i had GCC 2.95 I compiled some programs that I made was ok,
> now i have GCC 3.3 and when I try to compile these programs apears an
> error.
>
>   The source's syntaxis is correct, when i make te object (.o file),
> works fine, but when i link the objetcs the lasts lines of the output ar
> ...
> ...
> main.o(.gnu.linkonce.t._ZN12smart_objectI4TDibED0Ev+0x26): In function
> `smart_object<TDib>::~smart_object [in-charge deleting]()':
> ../common/smart.h:107: referencia a `TDib::~TDib [in-charge]()' sin definir
> collect2: ld devolvi? el estado de salida 1
>
>
> almost all lines of the erorr said thath the function X in reference with Y
> is undefined.
>
> what's wrong with it?
> what can i do?
>
> Thank you
>
> _________________________________________________________
> Do You Yahoo!?
> La mejor conexi?n a internet y 25MB extra a tu correo por $100 al mes.
> http://net.yahoo.com.mx
> ---------------------------------------------------------------
> Acasa.ro vine cu albumele, tu vino doar cu pozele ;)
> http://poze.acasa.ro/


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux