shaonD
9 years agoHonored Guest
Android Studio new c++ class add
I have create a new Empty Native Application Project using Oculus mobile SDK and Android studio, which is working fine. Its run in mobile with green screen.
I have created a new class (MyCube.cpp and MyCube.h),
But when I am trying to access the new class from OvrApp.cpp, Its saying 'Error:error: undefined reference to 'MyCube::MyCube()''
Where I have to listed this new class file?
For native android app (Which was created by android studio), I had to declare the class in CMakeLists.txt
But for Oculus mobile sdk I dont know where I have declare my new class.
Any Help??
I have created a new class (MyCube.cpp and MyCube.h),
But when I am trying to access the new class from OvrApp.cpp, Its saying 'Error:error: undefined reference to 'MyCube::MyCube()''
Where I have to listed this new class file?
For native android app (Which was created by android studio), I had to declare the class in CMakeLists.txt
But for Oculus mobile sdk I dont know where I have declare my new class.
Any Help??