Re: Error LNK2019



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.

.



Relevant Pages

  • Re: Borland C++BuilderX
    ... Mostly, programmers do not worry about the contents of header files, ... the rest of the source code that I provide but use the full name when I ... The next two lines of our program are instructions to the compiler to ... object code files and libraries. ...
    (alt.comp.lang.learn.c-cpp)
  • SUCCESS: DBD::Oracle 1.15 on HP-UX 11.11
    ... to link 32bit executables to 64bit libraries. ... * The format of compiled objects is specified by compiler options. ... while ora9 delivers only 2.0/64. ... a bit inconsistent considering the ora8 setup, ...
    (perl.dbi.users)
  • Re: port seahorse wont upgrade properly
    ... gnome-applets everytime I do a portupgrade gnome-applets: ... checking for C compiler default output file name... ... checking if cc static flag -static works... ... checking whether the cc linker supports shared libraries... ...
    (freebsd-questions)
  • unable to compile "rrdtool-1.2.12" on AIX 5 m/c
    ... checking for C compiler default output file name... ... checking dlfcn.h presence... ... checking whether stripping libraries is possible... ... IEEE Math Checks ...
    (comp.unix.aix)
  • Re: Headless Azureus with any X11 Dependencies ??
    ... installing azureus. ... checking for C compiler default output file name... ... checking whether we are using the GNU C compiler... ... checking whether the cc linker supports shared libraries... ...
    (freebsd-questions)