Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Error message in fortran

  1. Jun 23, 2008 #1
    I have a code in Fortran that I can compile but when I try to build it I get the following messages:
    error LNK2001: unresolved external symbol _DEVCRG@24
    fatal error LNK1120: 1 unresolved externals

    I guess that it does not understand it cannot find the subroutine DEVCRG, but I do not know the reason why...
    Please help
  2. jcsd
  3. Jun 23, 2008 #2
    DEVCRG is a library routine belonging to the IMSLĀ® Fortran Numerical Math Library.
    I guess you need to link against this library to get it to work.
    Which compiler are you using and which OS?
  4. Jun 23, 2008 #3
    Thanks for the reply,
    I compile with Fortran Powerstation 4.0, Microsoft developer studio and my OS is windows xp sp2. Please tell me where can I download this library and how can I link it to my code?
  5. Jun 24, 2008 #4
    I found the following forum thread concerning a similar problem
    If I have understood everything correctly you have to buy the Intel Fortran Compiler together with IMSL if you want to use Visual Studio.
    One free alternative is to use gfortran which is a part of GCC (http://gcc.gnu.org/" [Broken]).
    Last edited by a moderator: May 3, 2017
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook