- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you disabled the default library directives? You also need ifwin.lib.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I seem to recall this happening with an old version. But just replace NULL_SECURITY_ATTRIBUTES with NULL - it will work.

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