Skip to main content
July 26, 2011
Question

C++, PluginMain() and file types

  • July 26, 2011
  • 1 reply
  • 893 views

I'm attempting to write a little do-nothing plugin, and not having it compile.  This is on a Mac, 64-bit Snow Leopard, using XCode and the CS5 SDK.

At first I tried having the main source code file (the only source code file) be .cpp, and it didn't compile.  Searching forums and Google, Someone said there's a filetype to change the file to, objective-c++, sourcecode.cpp.objccpp (sp?).   I tried it.    It still didn't compile, but now for other reasons.  Now I look in the Dissolve example, clicking on Get Info for the file with PluginMain() and see it is the plain vanilla C++ file type, sourcecode.cpp.cpp.   Yet Dissolve *does* compile!    What is the explanation?

This topic has been closed for replies.

1 reply

July 29, 2011

Why not just based on the sample Dissolve and then add/change your code to the project?