I can confirm that I could not use #agk.h on other classes. I'm on xCode, see image attachment for the error.
I tried putting on the header file, then on the CPP file, then both. Build fails all the time. My code that works is below (I commented out agk.h and it builds properly, otherwise it won't)
I am using the template provided for iOS xCode Tier 2.
#ifndef TCLASS_H_
#define TCLASS_H_
// Include AGK libraries
#include <string>
//#include "agk.h"
// define one of these to fix the player to that orientation forever
//#define AGK_LANDSCAPE
//#define AGK_PORTRAIT
// Global values for the app
class TestClass
{
public:
// global game vars
public:
// constructor
TestClass() {}
~TestClass() {}
// main app functions - mike to experiment with a derived class for this..
const char* test( void );
private:
void testPrivate ( void );
};
extern TestClass TClass;
#endif
// Includes
#include "testclass.h"
//#include "template.h"
TestClass TClass;
const char* TestClass::test(void)
{
const char *sometext = "sommm";
return sometext;
}
void TestClass::testPrivate()
{
}