Home » Community » Newbie corner » Build error
Build error [message #24952] |
Fri, 05 February 2010 20:27  |
gedumer
Messages: 21 Registered: March 2006
|
Promising Member |
|
|
I don't understand why I'm getting the following errors on a new project generated by U++. I haven't added anything to it yet. I just create the project and build it. This was done on Ubuntu 9.10.
test2.h
#ifndef _test2_test2_h
#define _test2_test2_h
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
#define LAYOUTFILE <test2/test2.lay>
#include <CtrlCore/lay.h>
class test2 : public Withtest2Layout<TopWindow> {
public:
typedef test2 CLASSNAME;
test2();
};
#endif
main.cpp
#include "test2.h"
test2::test2()
{
CtrlLayout(*this, "Window title");
}
GUI_APP_MAIN
{
test2().Run();
}
test2.lay
LAYOUT(test2Layout, 200, 100)
END_LAYOUT
Errors:
----- CtrlLib ( GUI GCC SHARED FORCE_SIZE LINUX ) (1 / 9)
----- CtrlCore ( GUI GCC SHARED FORCE_SIZE LINUX ) (2 / 9)
----- RichText ( GUI GCC SHARED FORCE_SIZE LINUX ) (3 / 9)
----- PdfDraw ( GUI GCC SHARED FORCE_SIZE LINUX ) (4 / 9)
----- Draw ( GUI GCC SHARED FORCE_SIZE LINUX ) (5 / 9)
----- plugin\bmp ( GUI GCC SHARED FORCE_SIZE LINUX ) (6 / 9)
----- Core ( GUI GCC SHARED FORCE_SIZE LINUX ) (7 / 9)
Stream.cpp
In file included from /usr/include/fcntl.h:217,
from /home/gary/upp/uppsrc/Core/Core.h:245,
from /home/gary/upp/uppsrc/Core/Stream.cpp:1:
In function ‘int open(const char*, int, ...)’,
inlined from ‘bool Upp::FileMapping::Create(const char*, Upp::int64, bool)’ at /home/gary/upp/uppsrc/Core/Stream.cpp:1342:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument nee
ds 3 arguments
Core: 1 file(s) built in (0:01.78), 1783 msecs / file, duration = 1794 msecs, parallelization 0%
There were errors. (0:01.98)
[Updated on: Fri, 05 February 2010 20:31] Report message to a moderator
|
|
|
|
Re: Build error [message #24957 is a reply to message #24955] |
Fri, 05 February 2010 22:49  |
gedumer
Messages: 21 Registered: March 2006
|
Promising Member |
|
|
I'm in the process of trying different versions and so far v1824 works fine. I'll stick with that for a while.
|
|
|
Goto Forum:
Current Time: Mon May 12 03:36:26 CEST 2025
Total time taken to generate the page: 0.00567 seconds
|