Sign in to follow this  
Dragun

C++ in Carbon with Xcode...possible?

Recommended Posts

Made a simple hello world program with my new Mac and it's great. Whatever. So I started to drop in my generic header files with a bunch of classes and it's giving me errors with the declarations of my classes. Getting frustrated, I removed all the files and made a simple 'Foo' class and it still give me declaration errors. I finally came to the conclusion that Xcode is not compiling the C++ code. Is there anything special I have to do? All I did was start a new empty Carbon application and went from there.

Share this post


Link to post
Share on other sites
Could you post the actual error messages? Go to Build->Show Detailed Build Results then copy the text from the lower pane. Perhaps it would help if you posted the source for the 'Foo' class.

It is possible that the files are being detected as C files. You can check this in the "Get Info" window for the source file.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this