- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
I move my Fortran source from ubuntu 10.10 32 bits to ubuntu 10.10 64 bits and the next error appear. Intel Fortran Composer 64bits
pedro@pedro-VPCF11C5E:~/workspace/micha$ ifort LIB_BOUND6.f90 BOUND_COLL.f90 -L. -lport
---------------------------^
ld: skipping incompatible ./libport.a when searching for -lport
ld: cannot find -lport
What happened???
pedro@pedro-VPCF11C5E:~/workspace/micha$ ifort LIB_BOUND6.f90 BOUND_COLL.f90 -L. -lport
---------------------------^
ld: skipping incompatible ./libport.a when searching for -lport
ld: cannot find -lport
What happened???
Link kopiert
2 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Could you help to check if your libport.a in current directory is 64-bit already ? Looks linker can not recognize it.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
What is the path to your working directory? Which version of the compiler did you run ("ifort -V" will tell you that). How was libport.a built? Libraries of different types (32-bit and 64-bit) cannot be linked with object files of an incompatible type.
If you are running the 32-bit compiler, and the linker finds a 64-bit library first in the library search path list, it will display an error message such as the one you saw, and then continue to look for a 32-bit library with the specified name. Conversely, if you run the 64-bit compiler and the linker finds a 32-bit library first, a corresponding error message is displayed.
If you are running the 32-bit compiler, and the linker finds a 64-bit library first in the library search path list, it will display an error message such as the one you saw, and then continue to look for a 32-bit library with the specified name. Conversely, if you run the 64-bit compiler and the linker finds a 32-bit library first, a corresponding error message is displayed.

Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite