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 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

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

Steve Lionel (Intel)的头像

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

登陆并发表评论。