[Aldor-l] libaldor.a incompatible?

Christian Aistleitner tmgisi at gmx.at
Tue Jun 7 02:45:33 EDT 2005


Hello,

> /usr/bin/ld: skipping
> incompatible /usr/local/aldor/linux/1.0.2/lib/libaldor.a when
> searching for -laldor
> /usr/bin/ld: cannot find -laldor
> collect2: ld returned 1 exit status

libaldor.a is in 32bit format. You are probably have Aldor to compile  
64bit object files.
This happens even with a 32bit aldor compiler on a 64bit system, as Aldor  
uses gcc (well actually unicl, which uses gcc) to compile .c to .o.
gcc however will probably produce 64bit object files per default.

> Does anyone have a suggestion how to correct this problem?

Either compile the libraries to 64bit or tell aldor to produce 32bit  
object files.
To compile the libraries to 64bit has its issues with libfoam-car, as this  
is only available as .a not as .al.
You can produce 32bit object files in various ways. Use a 32bit gcc (I do  
not know about Fedora Core, but gentoo allows to switch very comfortly  
between different gcc's) or tell your 64bit gcc to produce 32bit object  
files (-m32)

--
Best regards,
Christian



More information about the Aldor-l mailing list