Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29434 Discussions

Building Mixed Language Applications: errors LNK2019 and LNK2001

jurmich
Beginner
640 Views

Our next problem by portation of mixed languages project from MSDEV (MS Powerstation Fortran) to Visual Studio 2005 : Fortran calls C-functions and vice versa. When putting the c-functions in an static library, we get the errors LNK2001 and LNK2019. C cannot resolve the links to the Fortran subroutine !?

Compiling manifest to resources...
rc.exe /fo "c:\jurij\merkur450\debug\v450.exe.embed.manifest.res" "c:\jurij\merkur450\debug\v450.exe.embed.manifest.rc"
Linking...
Creating temporary file "RSP1.rsp" with contents
[
/OUT:"C:\jurij\Merkur450\Debug\v450.exe" /INCREMENTAL /NOLOGO /MANIFEST /MANIFESTFILE:"c:\jurij\merkur450\debug\v450.exe.intermediate.manifest" /DEBUG /PDB:"c:\jurij\merkur450\debug\v450.pdb" /SUBSYSTEM:CONSOLE kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib netapi32.lib bapcl2x.lib /* here all fortran obj files, about 1400 */

]
Creating command line "Link @"C:\jurij\Merkur450\Debug\RSP1.rsp""

Juri

0 Kudos
0 Replies
Reply