- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hello everybody:
I cannot link my code with my created .a libraries. However if I link directly with the .o files that are inside the .a files than it links. Is there any trick when considering user created .a libraries?
Thanks.
Guilherme Vaz
I cannot link my code with my created .a libraries. However if I link directly with the .o files that are inside the .a files than it links. Is there any trick when considering user created .a libraries?
Thanks.
Guilherme Vaz
Link kopiert
2 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
There *shouldn't* be a difference between linking against .o and .a.
Can you post the error(s) you got, what version of Intel Fortran you are using, and what Linux distribution you have.
Thanks -
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
I have Fedora Linux 3, ifort v8.1.
First it was very difficult to link with the .a libraries that were in different folders. The options -L -l seem not to work (or I am doing something wrong and different to what what I use to do in Unix and a different compiler) and so I did manually:
ifort procal_main.o -o procal ../IoLib/libIo.a
If I do that it complains (several times):
procal_main.o(.text+0x10a): In function `MAIN__':
: undefined reference to `init_procal_'
But if I copy all .o to the local folder and do:
ifort procal_main.o *.o -o procal
it works.
Can you maybe give me a hint?
Thanks.
Guilherme
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