Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Obj-C in C++ code



Hi all, I've been trying like hell to get this to work with no luck.  I've been trying to use some of Apple's sample code as a starting point for drawing fonts in a GL context (like GLString in the NSGLImage sample).  But I'm wanting to call those functions from within a c++ class.  I'm sure that I'll need some sort of wrapper functions but I'm getting around 9800 errors from within Cocoa classes.  I'm currently using 10.4 with Xcode 2.0 and cross developing for 10.3-10.4, I also got these errors under Xcode 1.5 and 10.3.9.

Here is a snippet of the errors.

Any help would be greatly appreciated.

Thanks!

dave rogers

/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:56: error: expected unqualified-id before '@' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:58: error: expected constructor, destructor, or type conversion before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:59: error: 'NSString' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:59: error: 'aSelectorName' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:60: error: 'NSString' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:60: error: 'aClassName' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:61: error: expected constructor, destructor, or type conversion before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:64: error: variable or field 'NSLog' declared void
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:64: error: 'NSString' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:64: error: 'format' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:64: error: expected primary-_expression_ before '...' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:64: error: initializer _expression_ list treated as compound _expression_
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:65: error: variable or field 'NSLogv' declared void
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:65: error: 'NSString' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:65: error: 'format' was not declared in this scope

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.