- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi, I have some compiled modules in a directory /home/mods/ and a program main.f90 that uses that modules in directory /home/programs.
When I type in the directory /home/programs
ifort -c main.f90 -I/home/mods/
everything goes ok but afterwards, when I try to create the executable file with
ifort -o main main.o -I/home/mods
it gives me undefined references to the modules. How can I create my executable?
Thanks to all
When I type in the directory /home/programs
ifort -c main.f90 -I/home/mods/
everything goes ok but afterwards, when I try to create the executable file with
ifort -o main main.o -I/home/mods
it gives me undefined references to the modules. How can I create my executable?
Thanks to all
- Balises:
- Intel® Fortran Compiler
Lien copié
1 Répondre
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
-I has no meaning when linking. You have to link against the .o files created when the modules were compiled. A common method is to insert the objects in a .a library and link to that.

Répondre
Options du sujet
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable