Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

unesys error LNK2019: unresolved external symbol _IFWINTY_mp_null_security_attributes referenced in

jc_dauphin
Beginner
700 Views
Hi everybody,

I have a link problem that I cannot figure out how to solve it:

I always get the following msg:

unesys error LNK2019: unresolved external symbol _IFWINTY_mp_null_security_attributes referenced in function _fcreate


While I have included the USE IFWIN statement as follow:

integer function fcreate (unit, filename)
use ifwinty

implicit none
character *(*) filename
integer unit

include 'msdos.cmn'
include 'ioxpc.cmn'
integer h


h = CreateFile(filename,
+ IOR(GENERIC_READ,GENERIC_WRITE),
+ IOR(FILE_SHARE_READ,FILE_SHARE_WRITE),
+ NULL_SECURITY_ATTRIBUTES,
+ CREATE_ALWAYS,
+ FILE_ATTRIBUTE_NORMAL,
+ NULL)

......

I have also included the ifwin.lib kernel32.lib ifconsol.lib in the "additional dependencies" field of the the project linker "Input" tab.

I would appreciate any help or suggestion for solving this problem. Thank you in advance.

JC Dauphin
UNESCO
0 Kudos
3 Replies
Steven_L_Intel1
Employee
700 Views
Have you disabled the default library directives? You also need ifwin.lib.
0 Kudos
jc_dauphin
Beginner
700 Views
Thanks Steve for your prompt reply.

The default library directives is not disabled

Here is the linker command line:

/OUT:"$(OUTDIR)/unesys.exe" /VERBOSE /INCREMENTAL:NO /NOLOGO /DEBUG /PDB:"$(OUTDIR)/unesys.pdb" /SUBSYSTEM:CONSOLE ifwin.lib kernel32.lib ifconsol.lib

and as additional options:

/MACHINE:I386

And in case it may be useful, the Fortran command line:

/nologo /Zi /Od /pad_source /align:rec1byte /iface:cref /module:"$(INTDIR)/" /object:"$(INTDIR)/" /traceback /libs:static /dbglibs /c

Jean-Claude
0 Kudos
Steven_L_Intel1
Employee
700 Views
I seem to recall this happening with an old version. But just replace NULL_SECURITY_ATTRIBUTES with NULL - it will work.
0 Kudos
Reply