> Basically I'm having an issue with a global variable.
> I have int songCounter declared outside of main in source file only
> [...]
> My guess is that instead of incrementing or decrementing songCounter
> directly, they're somehow creating local versions of the variable
> to work with instead. Any ideas on how to work around this?

Sounds like you forgot the "extern" keyword in the other files
so you are indeed creating a series of local songCounters in each
file instead of referring to the global one.

D.

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to