Enrique,
Thanks a lot for your help.
The Fortran complier (Intel Visual Fortran 11.1) returns error LNK2010: unresolved external symbol_GID_xxxxx referenced in function_MAIN_…Fatal error LNK1120: unresolved externals at the end.
I’ve converted your Fortran project to Intel VF. It’s working just fine. So it appears that my property setting was wrong. I’ve made the following changes in Project Properties and it seems like gidpost.lib is now linked to the source code just fine.
[Microsoft Visual Studio 2008, Intel Visual Fortran 11.1]
- Go to Project - Property
- Select Configuration to All Configurations
- Go to Linker - General - Additional Library Directories, Type the folder 4) path of gidpost.lib
- Go to Linker - Additional Dependencies , Type gidpost.lib
- Go to Fortran - External Procedures - Calling Convention, Change from default to CVF (/iface:cvf)
Again, thank you so much. It seems like I forgot to apply these changes to “All configurations” rather than Debug or release.
Regards,
Kenji
-----Original Message-----
From: gidlist-bounces at listas.cimne.upc.edu [mailto:gidlist-bounces at listas.cimne.upc.edu] On Behalf Of Enrique Escolano
Sent: Wednesday, September 08, 2010 10:19 AM
To: gidlist at listas.cimne.upc.edu
Subject: Re: [GiDlist] gidpost.lib for Intel Visual Fortran Compiler
The source code C/C++ is of the GiD post is included in the downloaded zip
http://www.gidhome.com/gid-plus/tools/gidpost
To compile it is necessary off course this kind of language compiler (we are
using on Windows MS Visual C++ 2005 or 2008)
What is happening with our compiled library? It is not possible to link it
or it doesn’t work at runtime?
I attach you a simple Fortran example (testpostfor.f) compiled with Intel
Visual Fortran 10.1.25 on Microsoft Visual Studio 2005 (the project is
included)
a testpostfor.exe program must be created, and running it a
testfortran.post.res GiD postprocess file must be created
Regards
Enrique Escolano
----- Original Message -----
From: “Furui, Kenji” Kenji.Furui at conocophillips.com
To: gidlist at listas.cimne.upc.edu
Sent: Wednesday, September 08, 2010 2:53 PM
Subject: Re: [GiDlist] gidpost.lib for Intel Visual Fortran Compiler
Enrique,
The revised lib file doesn’t work on my machine (Intel Visual Fortran 11.1
/ Visual Studio 2008) neither. I don’t know why it can’t.
Is it possible for me to get the source code of gidpost.lib in the form of
subroutines? It works better for me since I can compile them along with my
source code for our program. Then it should work with no problem on any
Fortran compiler.
Regards,
Kenji
From: Adria Melendo [mailto:amelendo at cimne.upc.edu]
Sent: Monday, September 06, 2010 6:29 AM
To: Furui, Kenji
Subject: Re: [GiDlist] gidpost.lib for Intel Visual Fortran Compiler
Yee, It is possible to use gidpost also with Intel Visual Fortran (at
least I tested it with Intel Visual Fortran 10.1.25 on Microsoft Visual
Studio 2005)
I attach the gidpost.lib library (win x32) that a I am using (I recompiled
the library again from the source code with the appropiated settings to be
linked with this FORTRAN version)
I think that to link you must set the property
Fortran-External procedures -calling convention to ‘default’ or maybe to
CVF (/iface:cvf)
Regards
Enrique Escolano
From: Furui, Kenji
Sent: Friday, September 03, 2010 5:07 PM
To: ‘gidlist at listas.cimne.upc.edu’
Subject: gidpost.lib for Intel Visual Fortran Compiler
Hi,
I’m trying to link gidpost.lib in Intel Visual Fortran Compiler but
getting error messages. Could you please tell me if it’s compatible? - It
seems gidpost.lib works in Compaq Visual Fortran though…
I’m using Intel Visual Fortran 11.1 on Microsoft Visual Studio 2008.
Thanks,
Kenji
GiDlist mailing list
GiDlist at listas.cimne.upc.edu
_http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_