Software Archive
Read-only legacy content
17061 Discussions

LINK 2001 error

johnwasson
Beginner
268 Views
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.
0 Kudos
2 Replies
Jugoslav_Dujic
Valued Contributor II
268 Views
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
0 Kudos
Steven_L_Intel1
Employee
268 Views
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
0 Kudos
Reply