Wiki Particle System Example Fails

Hi,

I’m new to openframeworks and code::blocks and haven’t done C++ in a long time.

Working through the example at:
http://wiki.openframeworks.cc/index.php?title=Basic-particle-system
the program fails to compile taking issue with every line that uses the pointer to the list iterator.

For example, in the following lines:

  
void testApp::create_particles() {  
  for (list<Source*>::iterator si = sources->begin(); si != sources->end(); si++)  
  

the for statement gets flagged.

It’s the same error every time an iterator is referenced:

base operand of `->’ has non-pointer type

Any ideas as to what changes need to be made to the example so that it will work?

Thanks.