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 |
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)
|
|
|
|
|
Goto Forum:
Current Time: Sat Apr 20 18:10:57 CEST 2024
Total time taken to generate the page: 0.01891 seconds
|