someone passed me an openFrameworks project src folder. The project has a class called "rectangle."
Inside the src folder there are main.h, testApp.cpp, testApp.h, rectangle.cpp, rectangle.h. I directly replace the src folder in my empty project, but the project won't compile.
I believe the search directories are right since the class files are also in the src folder.
However CB shows me the "error: Rectangle does not name a type" in testApp.h
Rectangle myRect;
I already included the header files in testApp.h (#include "rectangle.h") and have the rectangle.h include ofMain.h
Not sure if I am doing the right way to include a class.
Thanks!
The testApp.h file:
The rectangle.h file:
The rectangle cpp:
file structure: