- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page