Re: Error LNK2019
- From: jwm <jwmwalrus@xxxxxxxxx>
- Date: Fri, 31 Aug 2007 12:28:26 -0700
On Aug 31, 11:48 am, marcomarc...@xxxxxxxxx wrote:
Thanks for reply,
the "guilty" function is erfc which belong to the IMSL library. It
should be enough write "USE ERFC_INT" (at least this say the example
in the IMSL fortran user's guide). Maybe the problem is in the project
settings? I mean: the project (or something else) isn't properly
configured to use the imsl library? If so I don't know what to do.
The error comes from the linker, not the compiler. USE ERFC_INT is OK
for the compiler, but the linker requires the path and name of the
libraries to be used.
Check the menu "Tools>Options>Intel(R) Fortran" to see if the VNI
entries are set correctly for executables ($(VNI_DIR)\bin\$
(LIB_ARCH)), libraries ($(VNI_DIR)\lib\$(LIB_ARCH)) and include files
($(VNI_DIR)\include\$(LIB_ARCH)); ---where VNI_DIR is the path of your
Visual Numerics installation and LIB_ARCH is the target architecture
(IA32, IA64, etc.). Alternatively, you can set the libraries and
include paths in the settings for your project; set them in the
Additional include (or library) directories in the Fortran>General (or
Linker>General) property pages.
There should be some C/C++ header files in the include folder of your
VNI installation (something like link_????.h). Pick the one you want
to use (static or dll, etc.) and add an include line below the "USE
ERFC_INT"; it might be something like
USE ERFC_INT
include "link_f90_static.h"
Or, alternatively, the names of the libraries included in the
link_????.h file can go in the "Linker>Input>Additional dependencies"
section of the property pages for the project.
I hope that helps.
.
- Follow-Ups:
- Re: Error LNK2019
- From: marcomarco76
- Re: Error LNK2019
- References:
- Error LNK2019
- From: marcomarco76
- Re: Error LNK2019
- From: mecej4
- Re: Error LNK2019
- From: marcomarco76
- Error LNK2019
- Prev by Date: Re: TRANSPOSE and MATMUL interaction
- Next by Date: Re: fortran95 error
- Previous by thread: Re: Error LNK2019
- Next by thread: Re: Error LNK2019
- Index(es):
Relevant Pages
|