On Tuesday 23 March 2004 18:06, you wrote:
> Dear List!
>
> I've encountered a rather unpleasant problem. In a nutshell it is like
> this:
>
> when linking code compiled with g++ 3.2.2 with a library that has been
> compiled with gcc 2.x.x, the linker fails finding references.
>
> Now... The problem is that the library in question, if compiled from
> scratch (it's the libodbc++) with g++ 3.2.2 fails compilation. I've tried
> looking for some sort of explanation for this phenomena but with no luck so
> far. Any help would be appreciated! Thank You!

GCC 3.X is not binary compatible with GCC 2.X. Actually I wouldn't even try 
counting on binary compatibiliy between versions of 3.X (3.1 and 3.2 for 
instance...).

Make sure that all libraries, especially C++, are compiled using the EXACT 
same compiler.

If the reason that you are using libs compiled using an old compiler is 
because you are in some kind of old distribution then use the compiler 
provided by the distribution or make an outright descision not use any of the 
libs provided by the distribution. It's your choice.

Cheers,
        Mark

>
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]

-- 
Name: Mark Veltzer
Title: Research and Development, Meta Ltd.
Address: Habikaa 17/3, Kiriat-Sharet, city.holon, Gush-Dan, country.israel 
58495
Phone: +972-03-5581310
Fax: +972-03-5581310
Email: mailto:[EMAIL PROTECTED]
Homepage: http://www.veltzer.org
OpenSource: CPAN, user: VELTZER, mailto:[EMAIL PROTECTED], url: 
http://search.cpan.org/author/VELTZER/
Public key: http://www.veltzer.org/ascx/public_key.asc, wwwkeys.pgp.net, 
0xC71E5D38


================================================================To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to