Why can't my Fortran code find the subroutine DEVCRG?

  • Thread starter Thread starter irida65
  • Start date Start date
  • Tags Tags
    Error Fortran
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 10K views
irida65
Messages
2
Reaction score
0
Hello,
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
 
Physics news on Phys.org
Hi
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?
 
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?
 
Hey
I found the following forum thread concerning a similar problem
http://forums.vni.com/showthread.php?t=531"
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/" ).
 
Last edited by a moderator: