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 » Developing U++ » U++ Developers corner » Unable to compile examples using g++ 5.3.0
Unable to compile examples using g++ 5.3.0 [message #46069] Sat, 27 February 2016 23:15 Go to previous message
tomas is currently offline  tomas
Messages: 6
Registered: February 2016
Promising Member
Hello again.

I can now build upp and theide using the nightly builds on my Arch linux machine but instead I'm having problems with the examples which I suspect is caused by a recent upgrade of gcc/g++ to 5.3.0 in my system.
The error messages starts with:
----- CtrlLib ( GUI GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (1 / 10)
BLITZ: LabelBase.cpp Button.cpp Switch.cpp EditField.cpp Text.cpp LineEdit.cpp DocEdit.cpp ScrollBar.cpp HeaderCtrl.cpp ArrayCtrl.cpp MultiButton.cpp PopupTable.cpp DropList.cpp DropChoice.cpp Static.cpp Splitter.cpp FrameSpl
    itter.cpp SliderCtrl.cpp ColumnList.cpp Progress.cpp AKeys.cpp RichTextView.cpp Prompt.cpp Help.cpp DateTimeCtrl.cpp SuggestCtrl.cpp Bar.cpp MenuItem.cpp MenuBar.cpp ToolButton.cpp ToolBar.cpp ToolTip.cpp StatusBar.cpp Ta
    bCtrl.cpp TreeCtrl.cpp DropTree.cpp DlgColor.cpp ColorPopup.cpp ColorPusher.cpp FileList.cpp FileSel.cpp FileSelUtil.cpp PrinterJob.cpp Windows.cpp Win32.cpp Gtk.cpp TrayIconWin32.cpp TrayIconX11.cpp TrayIconGtk.cpp Updat
    e.cpp CtrlUtil.cpp LNGCtrl.cpp Ch.cpp
CtrlLib.icpp
ChWin32.cpp
ChGtk0.cpp
ChGtk.cpp
In file included from /home/tomas/upp/uppsrc/Core/Core.h:246:0,
                 from /home/tomas/upp/uppsrc/Draw/Draw.h:6,
                 from /home/tomas/upp/uppsrc/RichText/RichText.h:4,
                 from /home/tomas/upp/uppsrc/CtrlCore/CtrlCore.h:4,
                 from /home/tomas/upp/uppsrc/CtrlLib/CtrlLib.h:4,
                 from /home/tomas/upp/uppsrc/CtrlLib/CtrlLib.icpp:1:
/home/tomas/upp/uppsrc/Core/Defs.h: In function 'bool Upp::IsNaN(double)':
/home/tomas/upp/uppsrc/Core/Defs.h:344:52: error: 'isnan' was not declared in this scope
 inline bool IsNaN(double d)        { return isnan(d); }
                                                    ^


I can work around the issue by either removing the "-std=c++0x" flag from the build settings or by modifying Defs.h and adding "std::" to both isnan and isinf on lines 344 and 345.

 
Read Message
Read Message
Read Message
Previous Topic: Build fails with freetype 2.6.3
Next Topic: [OpenGL][FreeBSD] GLDrawDemo Problem
Goto Forum:
  


Current Time: Fri Mar 29 07:25:01 CET 2024

Total time taken to generate the page: 0.02087 seconds