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

More Linking problems with mixed code

stevet96
Beginner
577 Views
I have split a mixed code library into two separate projects. In fact, I now have them creating two separate libraries to be linked in with the executable. When I link the libraries with the executable I am getting linking errors such as the following:
"error LNK2019: unresolved external symbol _DFRPLD@36 referenced in function _DFRDV"
A little history first, DFRDV is a Fortran function. DFRPLD is also a Fortran function. What seems to be happening is the C code can link properly against the Fortran functions, but the Fortran functions cannot call another Fortran function. I have tried using the /Gm switch for CVF compatibility. I have also set the Calling Convention to CVF, the Name Case Interpretation to Upper Case and String Length Argument Passing to After Individual String argument. These are the same settings as I had under CVF. The Fortran functions are all Upper Case in the code. How do I solve this linking problem?
Thanks in advance,
Steve
0 Kudos
2 Replies
ipattielgc
Beginner
577 Views
Does your function have character arguments? If so, it may be the same bug I described on this board unde "Incorrect name decoration using /iface:cvf..." just a few topics earlier when using the latest 8.0.047 comipler. Ian.
0 Kudos
stevet96
Beginner
577 Views
Yes that is exactly the same problem I am running into. Looks like moving to 8.0.044 is the answer for now.
Thanks,
Steve
0 Kudos
Reply