Quote:
Originally Posted by chris_c
if by supposed you mean the whole point of a cross platform GUI library, then, yes  ) 
|
I wasn't very clear was I? My bad. I meant as a general rule, inclusive of GUI libraries.
But we are on the same track here.
For the non-programmers reading this -
"Includes" in the "C" (or "C++") language are "header files" and the design intent behind header files is that they should never cause (or contain) code generation statements.
Not all source code authors follow that rule.
Here, this "quick and dirty" happens to work, today.
It may not work tomorrow and the O.P. is aware of this, this post is just so that other readers are aware also.