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 previous 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)
 
Read Message
Read Message
Read Message
Previous Topic: Compilation benchmark
Next Topic: New mingw version
Goto Forum:
  


Current Time: Fri Jul 18 10:53:14 CEST 2025

Total time taken to generate the page: 0.04333 seconds