Hi I created a new project on mac with tinderBox. I made a basic app to draw cube and it worked then I tired to create a particle class by creating cpp file and h file in source directory… it does not have any errors but it fails to compile with this error.
Undefined symbols for architecture x86_64:
"tourApp::p()", referenced from:
tourApp::draw() in tourApp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
this is my apps class declaration
class tourApp : public App {
public:
void setup() override;
void mouseDown( MouseEvent event ) override;
void update() override;
void draw() override;
void prepareSettings(Settings *settings);
CameraPersp cam;
//add a particle p for making a globaly accessable particle object
particle p();
};
and just calling p().draw() in draw() method. this types of errors kill lot of fun time.