Openframeworks: Beginnings - Line+Random
Started with openframeworks over the weekend. Just playing with basic graphic functions, line and circle, and mixing things up with a bit of randomness thrown in. XCode took a little time to get used to, but now things seem to be shaping up quite well. Plan to geek out for a couple of hours everyday with C++ :) The code is based on the processing code by Matt Pearson from his excellent book Generative Art.
2 things that might be helpful for people starting out with openframeworks/c++
Command /Developer/usr/bin/g++-4.2 failed with exit code 1
- usually means the same main file has been imported twice. delete the examples folder in the imported contributed library to be safe, thats what worked for me.
Do not make variable initializations (assigning value to the variables) in the .h file. ISO C++ does not like it :) People used to the Processing style of primarily procedural coding are prone to this error, so just thought it should be there as a reminder, in case the error pops up.

Comments [4]