mentaltruckdriver wrote on Wed, 01 March 2006 16:31
umm...when i compile it gives me this error:
C:\upp\mingw\bin/windres.exe: can't open icon file `icon.ico': No such file or directory
App.cpp
C:\App\AppLocation\App\App.cpp: In function `void GuiMainFn_()':
C:\App\AppLocation\App\App.cpp:445: error: `app' undeclared (first use this function)
C:\App\AppLocation\App\App:445: error: (Each undeclared identifier is reported only once for each func
tion it appears in.)
2 file(s) compiled in (0:08.93) 4468 msec/file
There were errors. (0:09.25)
What did I do wrong??
Hard to say. Looks like you do not have icon.ico file in your package directory and that you do not have app declared inside GUI_APP_MAIN....
Maybe I was not clear enough, in your code should be something like