> > 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.
>
I've tried declaring songCounter in every way possible-- in source file only, 
in header file only, static in source file, and in source and "extern" in 
header, but none of those seem to affect how the program runs.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to