I am having an issue getting the example externals to compile correctly when I change the project name. When I build an external from the examples folder, it runs fine. But when I build and run it after changing the project name to something else, it executes the initialization method (main) 5 times, and object appears in the patcher as if you typed an object that was not in Max's search path (brown with a green border, and no inlets or outlets). This happens both on windows and mac, and is very similar to the issue addressed in the middle of this post:
although I did not find a clear answer to the problem.
I would like to be able to change the project name so that I can make externals that are named something different than the max examples, but with the same settings.
The same error has occurred with Xcode 4.2.1 on OSX 10.7.2 Lion, Xcode 3.1.4 on OSX 10.5.8 Leopard, and Visual C++ 2010 Express on Windows 7. In all cases I was using either Max 5 or Max 6, and MaxSDK 5.1.7.
Here is the code for the patch that works: