Created
November 11, 2014 19:13
-
-
Save cbaggers/96aadd1a3656b82ea1c1 to your computer and use it in GitHub Desktop.
jni/XGC.cpp:10:1: error: 'XGC' in 'class Xli::Array<Android::Runtime::JWrapper*>' does not name a type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------header file -------// | |
#ifndef __XGC_ANDROID_HEADER__ | |
#define __XGC_ANDROID_HEADER__ | |
#include <${Android.Runtime.JWrapper:Include}> | |
#include <Xli/Mutex.h> | |
#include <Xli.h> | |
class XGC | |
{ | |
static Xli::Array< ${Android.Runtime.JWrapper}> xGCPool; | |
static Xli::MutexHandle xGCMutex; | |
static int sweepCountdown; | |
static int sweepDelay; | |
public: | |
static void InitXGC(); | |
static void Add(${Android.Runtime.JWrapper} obj); | |
static void Sweep(); | |
}; | |
#endif | |
//------cpp file -------// | |
#include <Xli/Mutex.h> | |
#include <Xli.h> | |
#include <jni.h> | |
#include <${Android.Runtime.JWrapper:Include}> | |
#include <${Android.Runtime.JNIHelper:Include}> | |
#include <${Uno.Exception:Include}> | |
#include <XGC.h> | |
Xli::Array< ::Android::Runtime::JWrapper* > XGC::xGCPool; // if I put :: before the XGC it doesnt compile | |
Xli::MutexHandle ::XGC::xGCMutex; // but on these 3 lines it works fine. | |
int ::XGC::sweepCountdown; | |
int ::XGC::sweepDelay; | |
... more code but most liekly irrelevent ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment