- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Adding an F90 subroutine which includes USE DFWIN (and CreateProcess) to a static library (of Fortran fixed format routines) which previously linked with no errors generates two missing externals
_DFWINTY_mp_NULL_CHARACTER
_DFWINTY_mp_NULL_SECURITY_ATTRIBUTES
(The newly added routine does use NULL_character and NULL_security_attributes as arguments of CreateProcess. A standalone workspace used to exercise the newly added routine links without error.)
Is there some documentation which shows the libraries that need to be added?
Thanks for your help.
_DFWINTY_mp_NULL_CHARACTER
_DFWINTY_mp_NULL_SECURITY_ATTRIBUTES
(The newly added routine does use NULL_character and NULL_security_attributes as arguments of CreateProcess. A standalone workspace used to exercise the newly added routine links without error.)
Is there some documentation which shows the libraries that need to be added?
Thanks for your help.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is a "ghost" problem I've seen occasionally. If I recall correctly (I'm not positive), you should add dfwin.lib to linker settings. I think that consoles and libs don't link with that library by default (but CreateProcess is fine since kernel32.lib has to be included with virtually anything).
Jugoslav
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jugoslav is correct that DFWIN.LIB needs to be linked in, but this should happen by default when you have USE DFWIN. I could imagine how if you built a static library, and then linked to that library, the reference to DFWIN.LIB might not be seen (it comes from DFWIN.OBJ which you'd get on a normal link).
Steve
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