Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

LNK2001 Errors when trying to run

Intel_C_Intel
Employee
478 Views
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.
0 Kudos
2 Replies
davidgraham
Beginner
478 Views
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
0 Kudos
Intel_C_Intel
Employee
478 Views
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
0 Kudos
Reply