C++: CppLocationGetter not a class, namespace, or enumeration

Discussion in 'Mac Programming' started by moonman239, Mar 26, 2016.

  1. moonman239 macrumors 68000

    Joined:
    Mar 27, 2009
    #1
    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.
     
  2. chown33 macrumors 604

    Joined:
    Aug 9, 2009

Share This Page