- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a C++ program that links to a static Fortran library. I use VC 7.1 for C++ and IVF for Fortran projects. I get a link error LNK2019: unresolved external symbol _SUBLOAD@4 referenced in function _DASUBLOAD. It happens if the SUBLOAD Fortran subroutine has a parameter of type character array:
subroutine SUBLOAD(facilityIDs)
character facilityIDs(30)
end subroutine
If I change the parameter type to something else I don't get the link error. I created the simplest test case to demonstrate the problem and attached the sources and project files.
subroutine SUBLOAD(facilityIDs)
character facilityIDs(30)
end subroutine
If I change the parameter type to something else I don't get the link error. I created the simplest test case to demonstrate the problem and attached the sources and project files.
Link Copied
0 Replies

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