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

ifort 15 Issues With Changing "Linker -> General -> Output File"

Nick2
New Contributor I
405 Views

I decided to dive into the ifort 15 upgrade so that I can be able to debug x64 code again, and I'm having some difficulties.

I have a solution file that creates one .lib output, and uses that .lib file as a dependency to make an .exe and a .dll.  When I try to compile the .exe or the .dll, I get this:

Warning 1 MyProject: warning: TargetPath(C:\PathWhereObjectFilesAreCreated\MyProject.dll) does not match the Linker's OutputFile property value (C:\PathWhereDllAndExeAreCreated\MyProject.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).  

I changed "Configuration Properties -> Linker -> General -> Output File" to (C:\PathWhereDllAndExeAreCreated\MyProject.dll), but this hasn't been an issue with previous versions of ifort.

I also get:

Error 2  general error c101008d: Failed to write the updated manifest to the resource of file "C:\PathWhereDllAndExeAreCreated\MyProject.dll". The system cannot find the file specified. mt.exe 

And, to debug MyProject, under "Configuration Properties -> Debugging -> Command", I had to change that from $(TargetDir) (or whatever it was) to C:\PathWhereDllAndExeAreCreated\MyProject.dll.

So, how do I resolve this warning and this error, and is it now necessary to change "Configuration Properties -> Debugging -> Command" to debug projects where you changed "Configuration Properties -> Linker -> General -> Output File" ?

0 Kudos
1 Reply
IanH
Honored Contributor III
405 Views

Some of your questions might have been addressed in https://software.intel.com/en-us/forums/topic/530369

0 Kudos
Reply