Hi all,
I'm trying to make a simple project in C++. I am able to build and run the template_linux project without issues but I can't add any custom classes to the project. I can't create an object either by calling:
MyClass obj;
obj.set(<some parameters>);
or by instancing it with 'new':
MyClass *obj;
obj = new MyClass(<some parameters>);
I saw that Mobiius had similar issues with his C++ code back in 2015. Here's his
thread.
I haven't programmed C++ stuff in ages but I believe I'm doing it right, but for some reason template doesn't recognise my object since Netbeans is giving me undefined reference error message.
Can somebody point me in the right direction here, please? Thank you!
EDIT: I may have found the problem. All I needed to do was to add my class inside AppGameKit namespace.
Mah machine: Intel Xeon E3-1231v3 4x3.40GHz | CM Hyper 212 Evo | ASRock H97 Pro4 | 240GB SanDisk SSD | Sapphire Radeon R9 270X Dual-X 2048MB | Seagate HDD 1000GB |
8GB Crucial Ballistix Sport DDR3-1600