THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/09/2008 at 14:30, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R11
Platform: Mac OSX ;
Language(s) : C++ ;
---------
So, I already had MacOS X 10.5(.4) installed on an external drive. Downloaded the Xcode 3.1 dmg and installed it using defaults onto that drive. I downloaded and installed the Cinema 4D R11 'savable' demo. I then opened the cinema4dsdk xcode project in Xcode 3.1 and built the release version without incident. So far so good.
I took all of my sources and built my usual folder structure for MacOS X projects in Xcode. I copied the cinema4dsdk project, renamed it, made changes to it, and viola, errors. To be absolutely certain, I deleted the copy, recopied, and made the fewest changes possible. Of course, I'm not sure if more changes are necessary or not - this is my first use of Xcode 3.1 and building on MacOS X 10.5 and using R11 and so forth and so on. Everything looks good. But the same errors. Those errors are:
error: expected constructor, deconstructor, or type conversion before 'class'
error: ISO C++ forbids declaration of 'Ltd_ShaderTreeNodeInput' with no type
First, as already mentioned, predefinition of a class when only a pointer is declared in another class as a member variable is allowed, standard practice.
Second, the declaration of Ltd_ShaderTreeNodeInput of course has a type (class) as it is declared. Methinks the name length might be jossling oh-so-superior Xcode 3.1 or something else is amiss somewhere. I can't find any solutions that are relevant here. The code isn't at fault (so says my OTHER 14 good builds). These are direct compiler errors so it isn't some lib missing or other. Could it be the line endings (one possibly relevant response that I read in my hours of searching and reading)?
Help, please, help. Please, oh, please, help.....somebody, anybody, anywhere
Thanks,