Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Portable function link error

xinjian_qian
Beginner
518 Views
I used intel visual fortran 9 for windows port CVF 6 project in VC.net 2003. I got the following link error.
libhsprsg.lib(cntl.obj) : error LNK2019: unresolved external symbol _BEEPQQ@8 referenced in function _CNTL_CLEANUP
libhsprsg.lib(envget.obj) : error LNK2019: unresolved external symbol _GETENVQQ@16 referenced in function _ENVGET
libhsprsg.lib(readlibs.obj) : error LNK2019: unresolved external symbol _GETENV@16 referenced in function _READLIBS
libhsprsg.lib(iob_readin.obj) : error LNK2019: unresolved external symbol _GETENV@16 referenced in function _IOB_READIN
my project setting is:
call conversion: CVF
use portable library: yes.
If we set "call conversion" to "Default", The link error are ok. but I wish to using "CVF" (because it will have much errors when using "Default"). How do I do to clean such link error?
Best Regards!
0 Kudos
3 Replies
Lorri_M_Intel
Employee
518 Views
Make sure you have
USE IFPORT
(or USE DFPORT)
in your source file.
That MOD file will make sure the correct external names are generated for these portability functions.
- Lorri
0 Kudos
xinjian_qian
Beginner
518 Views
Thanks Lorri, I will try it. Our project is porting from VC6.0 + CVF6 to VC.net 2003 + IVF9. I remembered we used the "USE DFPORT" in CVF6, when porting to IVF9, I removed it, so get the link error. I will try it. Thanks!
Best Regards!
0 Kudos
xinjian_qian
Beginner
518 Views

Thanks Lorri!

David

0 Kudos
Reply