Skip to main content
Known Participant
March 20, 2012
Question

ShObjIdl.h compile error when including Photoshop SDK header?

  • March 20, 2012
  • 1 reply
  • 2084 views

I develop photoshop plugins on both Mac 10.6 and Windows 7, now my code has been built and run successfully on Mac, but on Windows there are curious compile errors in a file "ShObjIdl.h", this is a Windows SDK header file. ( my VC++ version is 2010 ). It seems including some adobe SDK header file will cause the error. Is there someone who had met this? I guess some macro define conflicts.

This topic has been closed for replies.

1 reply

MT_ON1
Participant
June 3, 2016

Are you able to find a solution for this problem?   I am also running into this problem.

Tom Ruark
Inspiring
June 3, 2016

I don't see that file getting included directly in the latest SDK. Can you copy paste the error you are getting?

MT_ON1
Participant
June 3, 2016

I download the latest SDK and building it in VS2013 and this is what I got.

Error41error C2143: syntax error : missing ')' before 'constant'C:\Program Files (x86)\Windows Kits\8.1\Include\um\shobjidl.h119781PProxy
Error42error C2143: syntax error : missing ';' before 'constant'C:\Program Files (x86)\Windows Kits\8.1\Include\um\shobjidl.h119781PProxy
Error43error C2059: syntax error : 'constant'C:\Program Files (x86)\Windows Kits\8.1\Include\um\shobjidl.h119781PProxy
Error44error C2059: syntax error : ')'C:\Program Files (x86)\Windows Kits\8.1\Include\um\shobjidl.h119801PProxy
Error45error C2238: unexpected token(s) preceding ';'C:\Program Files (x86)\Windows Kits\8.1\Include\um\shobjidl.h119801PProxy