Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Icons
Re: Icons [message #1384 is a reply to message #1383] Wed, 01 March 2006 22:37 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14255
Registered: November 2005
Ultimate Member
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

struct MyApp : TopWindow {....

// or perhaps : WithMyLayout<TopWindow>

.....

GUI_APP_MAIN {
   MyApp app;
   app.Icon(Image::Icon(5555, true), Image::Icon(5555, false));
   app.Run();
}


Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Will not create packaqge with <empty> template
Next Topic: Console Output In Linux
Goto Forum:
  


Current Time: Mon Apr 28 14:13:42 CEST 2025

Total time taken to generate the page: 0.00824 seconds