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

Error LNK2019: unresolved external symbol _IARGC

chauvjo
Novice
806 Views
Software Setup:  Windows 7 Ultimate Service Pack 1
                 Visual Studio Professional 2012 Version 11.0.6.61030.00 Update 4
                 Intel Parallel Studio XE 2013  Version 14.0.3.202 Build 20140422

The following error was encountered while compiling a project with:

Configuration: Active(Debug)
Platform: Active(Win32)

error LNK2019: unresolved external symbol _IARGC referenced in function _COMMANDLINEARGUMENTS
error LNK2019: unresolved external symbol _GETARG referenced in function _COMMANDLINEARGUMENTS

The error does not occur when the Configuration is set to: Release

Any suggestions?

John

 

 

0 Kudos
3 Replies
TimP
Honored Contributor III
806 Views
If you want the legacy functions from before fortran 2003, try use ifport. Better change to standard equivalents.If
0 Kudos
chauvjo
Novice
806 Views

I was able to compile the project by switch from the Debug Multithread DLL Runtime Library to the Debug Multithread Runtime Library

0 Kudos
Steven_L_Intel1
Employee
806 Views

We support IARGC and GETARG as intrinsics, so if you declare them as EXTERNAL, remove the EXTERNAL. But I am puzzled that you are seeing a difference - maybe something else is going on. Can you attach a ZIP of your solution folder with a small program showing the problem?

Even better as a long-term solution, use the Fortran standard intrinsics COMMAND_ARGUMENT_COUNT and GET_COMMAND_ARGUMENT.

0 Kudos
Reply