Following a basic openFrameworks tutorial recently, I innocently decided to add a new class by using Visual Studio project menu commands Add > Class. My responses added .cpp and .h files but referencing them in ofApp.cpp or ofApp.h caused a “not found” error.
A plea for help brought kind responses which, in essence, require the user to create new class files outside VS then bring them into the project folder and use the “Add Existing Item” to accomplish integration into the project.That seems kind of painful.
This thread is where the conversation took place:
I’m wondering what internal structure of openFrameworks or problem with Visual Studio led to my issue. In Processing I’ve read (if my memory is still good) that its code runs as an “inside class” in Java. Further, if you create apparently separate classes in the Processing development environment tabs, those class definitions are actually appended to the tab containing setup() and draw().