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

  • Thread starter Thread starter irida65
  • Start date Start date
  • Tags Tags
    Error Fortran
AI Thread Summary
The user is encountering a linking error in their Fortran code, specifically error LNK2001, which indicates an unresolved external symbol related to the subroutine DEVCRG. This subroutine is part of the IMSL® Fortran Numerical Math Library, which must be linked to the code for successful compilation. The user is compiling with Fortran Powerstation 4.0 on Windows XP SP2 and is seeking guidance on obtaining and linking the IMSL library. It is noted that the Intel Fortran Compiler, which includes IMSL, is necessary for use with Visual Studio. An alternative suggested is using gfortran from the GCC, which is a free option.
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
 
Computer science 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:
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...

Similar threads

Replies
7
Views
2K
Replies
8
Views
4K
Replies
2
Views
2K
Replies
16
Views
2K
Replies
7
Views
4K
Replies
1
Views
3K
Back
Top