I am linking some Fortran code that contains subroutines (that are never called) that call routines from libraries I don’t provide. On Linux I can simply pass -Wl,–warn-unresolved-symbols and the linker ignores the missing symbols and generates my executable. On Windows this options doesn’t seem to be present. Is there any alternative?



Hi Mark,

While I haven’t used it myself, I believe the Windows linker flag for this is “-Wl,-force:unresolved”.

See: https://msdn.microsoft.com/en-us/library/70abkas3.aspx

Hope this helps,

Thanks Mat, that seems to have done the trick!