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 » Community » Newbie corner » Build error
Build error [message #24952] Fri, 05 February 2010 20:27 Go to previous message
gedumer is currently offline  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

 
Read Message
Read Message
Read Message
Previous Topic: Using U++ with existing code
Next Topic: Form Designer
Goto Forum:
  


Current Time: Thu May 02 21:40:22 CEST 2024

Total time taken to generate the page: 0.03077 seconds