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 next 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

Re: Build error [message #24955 is a reply to message #24952] Fri, 05 February 2010 22:21 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello gedumer

I am not en expert in Linux but I try to help Smile .

I could not reproduce your error. It seems that my Stream.cpp file is different than yours.

Please try to download the latest svn version possible (now it is 2014).

My fcntl.h is also very different to yours. I have an Ubuntu 9.04 with gcc 4.3.3.

Also as a last test try to compile in different modes.


Best regards
Iñaki
Re: Build error [message #24957 is a reply to message #24955] Fri, 05 February 2010 22:49 Go to previous message
gedumer is currently offline  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.
Previous Topic: Using U++ with existing code
Next Topic: Form Designer
Goto Forum:
  


Current Time: Fri Apr 19 20:27:52 CEST 2024

Total time taken to generate the page: 0.06055 seconds