LNK2001 Errors when trying to run

LNK2001 Errors when trying to run

I have a program with several modules. I can compile all the modules and main program fine, but when I attempt to run the program I get the following message:

linking...
fminln.obj : error LNK2001: unresolved external symbol _FUNCV@8
newt.obj : error LNK2001: unresolved external symbol _FDJAC@12
newt.obj : error LNK2001: unresolved external symbol _LUDCMP@12
newt.obj : error LNK2001: unresolved external symbol _LUBKSB@12
newt.obj : error LNK2001: unresolved external symbol _LNSRCH@36
Debug/Cross.exe : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.

I haven't been able to find out what the problem is, or what these errors are telling me. Can anyone point me in the right direction? Thanks.

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

fminln.obj : error LNK2001: unresolved external symbol _FUNCV@8

Means that in fminln.f90 - or its equivalent, there is a missing or wrong call to subroutine or function FUNCV.
I was confused by this a t first as the call looked correct and the subroutine was present, but then I found that the type of parameters was wrong - i.e. the call had integer*2 but the subroutine was defined with integer*4

Hope this is correct as I am by no means an expert.

David

Thanks for the help guys. I found I had many problems with mismatched variable types in the function calls. After a bit of work I've got the program running.

-Dave

Leave a Comment

Please sign in to add a comment. Not a member? Join today