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

  • Thread starter Thread starter irida65
  • Start date Start date
  • Tags Tags
    Error Fortran
Click For Summary

Discussion Overview

The discussion revolves around a Fortran code compilation issue, specifically related to the unresolved external symbol error for the subroutine DEVCRG. Participants explore potential causes and solutions, including library linking and compiler compatibility.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant reports an unresolved external symbol error related to the subroutine DEVCRG during the build process.
  • Another participant suggests that DEVCRG is part of the IMSL® Fortran Numerical Math Library and proposes that linking against this library may resolve the issue.
  • A participant inquires about the specific compiler and operating system being used, indicating that this information may be relevant to the solution.
  • One participant mentions the need to purchase the Intel Fortran Compiler along with IMSL for use with Visual Studio, while also suggesting gfortran as a free alternative.

Areas of Agreement / Disagreement

Participants have not reached a consensus on the exact solution to the problem, with multiple suggestions and potential paths forward being discussed.

Contextual Notes

There are limitations regarding the availability of the IMSL library and the specific requirements for linking it, which remain unresolved. The discussion also highlights dependencies on the choice of compiler and operating system.

Who May Find This Useful

Individuals working with Fortran, particularly those facing similar compilation issues or seeking information on library linking and compiler options.

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:

Similar threads

  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
7
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 17 ·
Replies
17
Views
5K