Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

moonman239

Cancelled
Original poster
Mar 27, 2009
1,541
32
I'm creating a C++ program that figures out the user's current location. As such, I've created an Objective-C object that will take care of getting the location using CLLocationManager.

I also have a C++ object - called "CppLocationGetter" - that will interface with my Objective-C object. CppLocationGetter.h includes LocationGetter.h (Objective-C), which in turn has an @Class directive for the CppLocationGetter class.
However, in CppLocationGetter.mm, I get an error: "CppLocationGetter not a class, namespace, or enumeration"

CppLocationGetter is within a namespace, but I have a "using namespace" directive before the line where the error is.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.