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 » Compiling simple app with .lay file -
Compiling simple app with .lay file - [message #11404] Tue, 11 September 2007 14:59 Go to next message
turcio is currently offline  turcio
Messages: 4
Registered: May 2006
Location: Poland, Gdansk/ Slupsk
Junior Member
I created the simplest gui with no widgets in Layout Designer and called it 'majn'. Unfortunately it doesn't compile. Can anybody help me??


*****main.cpp*********************************************** ****
#include <CtrlLib/CtrlLib.h>

using namespace Upp;
#define LAYOUTFILE <pierwsza/main.lay>
#include <CtrlCore/lay.h>

class majn : public Withmajn<TopWindow> {
public:

	typedef majn CLASSNAME;

	majn(){
		CtrlLayout(*this,"Pierwsza aplikacja w U++");
	}
};

GUI_APP_MAIN(){
     majn().Run();
}

************************************************************ ****

ERRORS:
/home/turcio/upp/MyApps/pierwsza/main.cpp:17: error: ‘GuiMainFn_’ declared as function returning a fun
ction
/home/turcio/upp/MyApps/pierwsza/main.cpp: In function ‘int GuiMainFn_()’:
/home/turcio/upp/MyApps/pierwsza/main.cpp:17: error: new declaration ‘int GuiMainFn_()’
/home/turcio/upp/MyApps/pierwsza/main.cpp:17: error: ambiguates old declaration ‘void GuiMainFn_()’
pierwsza: 1 file(s) built in (0:08.02), 8025 msecs / file, duration = 8035 msecs

There were errors. (0:08.93)
Re: Compiling simple app with .lay file - [message #11405 is a reply to message #11404] Tue, 11 September 2007 17:16 Go to previous messageGo to next message
Zardos is currently offline  Zardos
Messages: 62
Registered: April 2007
Member
ty:

GUI_APP_MAIN {
     majn().Run();
}


GUI_APP_MAIN without ()
Re: Compiling simple app with .lay file - [message #11406 is a reply to message #11405] Tue, 11 September 2007 17:28 Go to previous message
turcio is currently offline  turcio
Messages: 4
Registered: May 2006
Location: Poland, Gdansk/ Slupsk
Junior Member
Embarassed
i spent almost two hours trying to figure it out...
thanks Smile
Previous Topic: Compilation benchmark
Next Topic: New mingw version
Goto Forum:
  


Current Time: Sat Apr 20 18:10:57 CEST 2024

Total time taken to generate the page: 0.01891 seconds