Skip to main content
MOMIR_ZECEVIC
Inspiring
June 30, 2015
Question

Visual Studio 2010 premium: Linker error

  • June 30, 2015
  • 1 reply
  • 1151 views

Does someone knows what could be the cause of the following link error:

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(C:\00-AM-SDK6\pluginsdk\samplecode\automation\automationfilter\win\..\..\..\Output\Win\Debug64\AutomationFilter.8li) does not match the Linker's OutputFile property value (C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\Plug-ins\amplugins\AutomationFilter.8li). 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).

1>Link:

1>     Creating library .\..\..\..\Output\Objs\AutomationFilter\Debug64/AutomationFilter.lib and object .\..\..\..\Output\Objs\AutomationFilter\Debug64/AutomationFilter.exp

1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

1>

1>Build FAILED.

Fresh Windows 7 64 bit installation,

Photoshop CC SDK

Sample: AutomationFilter ,

Visual Studio 2010 Premium

Only thing that is changed is target path in linker settings to:

C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\Plug-ins\amplugins\AutomationFilter.8li

Debug->x64 build

Regards,

Momir Zecevic

This topic has been closed for replies.

1 reply

Tom Ruark
Inspiring
July 24, 2015

Not sure what is going on here. Do the other examples build ok? I would get a copy of the original AutomationFilter project and do a diff to see what is going on.

MOMIR_ZECEVIC
Inspiring
July 27, 2015

Hi Tom,

It is the original Automation filter that is compiled and I've tried Getter and Listner also with the same result.

We have encountered this when we moved from VS 2005 to 2010. When error occurred, we have tried fresh install on new machine (both VS 2010 and Photoshop CC SDK) with the same results.

So let me reformulate the question in order not to waist your time:

1) What is the latest version of VS that we can use?

2) What is the version of C++ that we can use,  meaning can we use c++ 11 or later with its features, (because it forbids redefining new , true/false etc...)

Regards,

Momir

Tom Ruark
Inspiring
July 27, 2015

In the "What's New?" section of the SDK I try and list out the compilers used for the version in question. Please check there. We switch compilers so often it is hard for me to remember!