Error LNK2019: unresolved external symbol _IARGC

Error LNK2019: unresolved external symbol _IARGC

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

 

 

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

If you want the legacy functions from before fortran 2003, try use ifport. Better change to standard equivalents.If

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

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.

Steve - Intel Developer Support

Leave a Comment

Please sign in to add a comment. Not a member? Join today