ding, thank you so much for taking the time to help me out here!
I did define the class… but it’s defined under the class that the code I showed you is in.
I changed the particle and source class around, and then I got a whole bunch of other errors… switched around some more stuff in the .ccp file and now i get 41 errors, with all kinds of different errors:
error: no `void testApp::create_particles()' member function declared in class `testApp'
In member function `void testApp::create_particles()':
error: `list' was not declared in this scope
... 39 more errors ...
Is it actually useful to try and figure this out, or should I just start on a somewhat simpler code?
it’s a different style then the code on the tutorial, but it’s fairly useful.
you can take the code from any of the days (day 5 and day 6 have particle code) and you must add all of the src code to an OF project (and use the vectorMath addon example as a base, since the particles use the vector math addon*). be sure to include all the .h and .cpp files for all targets.
* there is one example that uses opencv addon too, so you’ll need to base that off the all addons example.
I also attempted to assemble this example and ended up in a similar position. Does anyone have a more put-together version so that I can see what exactly is wrong with our setupz?
yes, so the only thing I did with the particle tutorial is paste it in the OF example app… and then all the errors got pooped out by the debugger…
I added nothing else.
I will try the other particle system posted by zach…
Sometimes the solution can be easy…
As I am a beginner and trying to learn C++ I struggle all the time over small mistakes.
Is the tutorial corrected at all?