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 » Create new package
Create new package [message #9717] Sun, 27 May 2007 22:06 Go to next message
gertwin is currently offline  gertwin
Messages: 25
Registered: May 2007
Location: Netherlands
Promising Member
Hello,

I searched the forum for this build error but i could not find it. Confused

If i create a new package (linux) with template "CtrlLib application with main window" the generated code is missing the line "using namespace Upp;"

This is generated and will not compile:
#ifndef _test_test_h
#define _test_test_h

#include <CtrlLib/CtrlLib.h>

#define LAYOUTFILE <test/test.lay>
#include <CtrlCore/lay.h>



class test : public TopWindow {
public:
typedef test CLASSNAME;
test();
};

#endif

This will compile:
#ifndef _test_test_h
#define _test_test_h

#include <CtrlLib/CtrlLib.h>

#define LAYOUTFILE <test/test.lay>
#include <CtrlCore/lay.h>

using namespace Upp;

class test : public TopWindow {
public:
typedef test CLASSNAME;
test();
};

#endif

Gertwin
Re: Create new package [message #9741 is a reply to message #9717] Tue, 29 May 2007 09:37 Go to previous messageGo to next message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
which version are you using?

groetjes,
Bas
Re: Create new package [message #9745 is a reply to message #9741] Tue, 29 May 2007 12:57 Go to previous message
gertwin is currently offline  gertwin
Messages: 25
Registered: May 2007
Location: Netherlands
Promising Member
I am using version 2007.1

I checked on windows, the line "using namespace Upp;" is added.
It will build on windows without modification.

I think it is linux related, you must add the line "using namespace Upp;" to build it.

Greetings,
Gertwin

[Updated on: Tue, 29 May 2007 23:00]

Report message to a moderator

Previous Topic: Different IDE behavior: Win32 - SuSE 10.0 - SuSE 10.2
Next Topic: linking problems
Goto Forum:
  


Current Time: Thu Apr 25 13:01:36 CEST 2024

Total time taken to generate the page: 0.03014 seconds