- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
1. I made static 'test.lib' using Intel Fortran.
2. I linked 'test.lib' from MS Visual C++.
It was OK if I make 'test.lib' using 9.1, but when I tried to link 'test.lib' made using 10.00, I got following error.
test.lib(test.obj) : error LNK2001: unresolved external symbol ___intel_f2int
How can I resolve this?
- Balises:
- Intel® Fortran Compiler
Lien copié
3 Réponses
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
You need to update the library paths for VC++ to reference the ifort 10.0 libraries instead of 9.1. Tools..Options..Projects..VC++ Directories..Library Files.
Note that at present you will have to revise this each time you install an update to 10.0 as the folder name will change.
Note that at present you will have to revise this each time you install an update to 10.0 as the folder name will change.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Thank you for your reply.
But, could you explain in detail? I added new line as you suggested as,
$(ProgramFiles)IntelCompilerFortran10.0.026IA32Lib
at Tools->Options->Projects and Solutions->Libray files. But I got same error message.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
I am not in the habit of using the $ macros - are you sure that one works? Make sure you don't also have the 9.1 folder in this list.
The other thing you can do is set the linker "verbose" option in the linker property page. This will tell you which libraries it is searching.
The other thing you can do is set the linker "verbose" option in the linker property page. This will tell you which libraries it is searching.

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