Link problem with Compaq Visual Fortran

From: Robert Yu (tyyu_at_erc.msstate.edu)
Date: 10/06/03


Date: 6 Oct 2003 01:42:37 -0700

Dear All:

   I am using the MicroSoft Visual Studio 6.0 under Window XP for a
project,
and my friend sent me a library (also created by Microsoft Visual
Studio),
yet one of the source codes is a Fortran program. He used Compaq
Visual Fortran
to compile the Fortran and C into a library. When I try to link this
library,
I first got some message saying some libraries are missing (ex: can
not find
dfor.lib, dfconsol.lib ...), in order to compile the entire project, I
got
those missing libraries. Yet, when I compile them again, I have the
following errors:

dfor.lib(matherr.obj) : error LNK2005: __matherr already defined in
msvcrtd.lib(merr.obj)
dfor.lib(intrin.obj) : error LNK2001: unresolved external symbol
___fastflag
dfor.lib(intrini.obj) : error LNK2001: unresolved external symbol
___fastflag
dfor.lib(for_diags.obj) : error LNK2001: unresolved external symbol
__sys_nerr
dfor.lib(for_io_util.obj) : error LNK2001: unresolved external symbol
__pctype
dfor.lib(for_init.obj) : error LNK2001: unresolved external symbol
__pctype
dfor.lib(for_io_util.obj) : error LNK2001: unresolved external symbol
___mb_cur_max
dfor.lib(for_init.obj) : error LNK2001: unresolved external symbol
___mb_cur_max
dfor.lib(for_init.obj) : error LNK2001: unresolved external symbol
___argv
dfor.lib(for_init.obj) : error LNK2001: unresolved external symbol
___argc

-----
If I ingore dfor.lib, then more errors show up.

Can anyone give me suggestions?

Thanks.

Robert



Relevant Pages

  • Re: Link problem with Compaq Visual Fortran
    ... > | yet one of the source codes is a Fortran program. ... > in Fortran and C run-time libraries (CVF uses both despite the fact ... GCG.lib: error LNK2001: unresolved external symbol ...
    (comp.lang.fortran)
  • Re: linking error
    ... I'm trying to link  three codes in fortran 90 by using compaq visual ... TEST_2REAC.OBJ: error LNK2001: unresolved external symbol ... in the project too and add the libraries to the link step for your ...
    (comp.lang.fortran)
  • Re: Calling LAPACK subroutines from Visual C++ project
    ... I'm trying to compile the following program [http://www.cs.rochester.edu/~bh/cs400/lapack_tut.c ... I get the linker error: ... lapackd.lib: error LNK2019: unresolved external symbol ... compiler that was used to compiler the libraries might work. ...
    (comp.lang.fortran)
  • Missing Lib Files
    ... involve missing libraries. ... unresolved external symbol DisableThreadLibraryCalls referenced in function ... Can I copy the libraries to the paths they are missing from ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Missing Lib Files
    ... involve missing libraries. ... unresolved external symbol DisableThreadLibraryCalls referenced in function ...
    (microsoft.public.windowsce.platbuilder)