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 » any experiments with gcc4.1?
any experiments with gcc4.1? [message #43] Tue, 22 November 2005 15:06 Go to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
Has anyone had any experiments with gcc4.1?
Re: any experiments with gcc4.1? [message #1676 is a reply to message #43] Mon, 13 March 2006 18:45 Go to previous messageGo to next message
abarilla is currently offline  abarilla
Messages: 9
Registered: March 2006
Promising Member
I just installed Fedora Core 6 Test 3 which is using GCC 4.1.0 and am receiving the following errors:

----- CtrlLib ( GUI GCC32 DEBUG SHARED DEBUG_FULL BLITZ LINUX ) (1 / 10)
BLITZ: LabelBase.cpp Button.cpp Switch.cpp EditField.cpp Text.cpp LineEdit.cpp DocEdit.cpp ScrollBar.cpp HeaderCtrl
	.cpp ArrayCtrl.cpp DropList.cpp DropPusher.cpp DropChoice.cpp Static.cpp Splitter.cpp SliderCtrl.cpp ColumnList
	.cpp Progress.cpp AKeys.cpp RichTextView.cpp RichClip.cpp Prompt.cpp Help.cpp Bar.cpp MenuBar.cpp ToolBar.cpp T
	oolTip.cpp StatusBar.cpp TabCtrl.cpp TreeCtrl.cpp DlgColor.cpp ColorPopup.cpp ColorPusher.cpp FileList.cpp File
	Sel.cpp Windows.cpp Win32.cpp CtrlUtil.cpp Update.cpp LNGCtrl.cpp
/home/andrew/upp/uppsrc/CtrlLib/TabCtrl.h:142: error: extra qualification ‘TabDlg::’ on member ‘Add0’
/home/andrew/upp/uppsrc/Core/Topt.h: In function ‘void AssertMoveable0(T*) [with T = unsigned char]’:
/home/andrew/upp/uppsrc/Core/Topt.h:215:   instantiated from ‘void AssertMoveable(T*) [with T = unsigned char]’
/home/andrew/upp/uppsrc/Core/Vcont.h:85:   instantiated from ‘Vector<T>::~Vector() [with T = unsigned char]’
/home/andrew/upp/uppsrc/Draw/PixelArray.h:137:   instantiated from here
/home/andrew/upp/uppsrc/Core/Topt.h:206: error: invalid type argument of ‘unary *’
/home/andrew/upp/uppsrc/Core/Topt.h: In function ‘void AssertMoveable0(T*) [with T = int]’:
/home/andrew/upp/uppsrc/Core/Topt.h:215:   instantiated from ‘void AssertMoveable(T*) [with T = int]’
/home/andrew/upp/uppsrc/Core/Vcont.h:85:   instantiated from ‘Vector<T>::~Vector() [with T = int]’
/home/andrew/upp/uppsrc/RichText/Txt.h:84:   instantiated from here
/home/andrew/upp/uppsrc/Core/Topt.h:206: error: invalid type argument of ‘unary *’
/home/andrew/upp/uppsrc/Core/Topt.h: In function ‘void AssertMoveable0(T*) [with T = bool]’:
/home/andrew/upp/uppsrc/Core/Topt.h:215:   instantiated from ‘void AssertMoveable(T*) [with T = bool]’
/home/andrew/upp/uppsrc/Core/Vcont.h:85:   instantiated from ‘Vector<T>::~Vector() [with T = bool]’
/home/andrew/upp/uppsrc/CtrlLib/ArrayCtrl.cpp:1910:   instantiated from here
/home/andrew/upp/uppsrc/Core/Topt.h:206: error: invalid type argument of ‘unary *’
/home/andrew/upp/uppsrc/Core/Topt.h: In function ‘void AssertMoveable0(T*) [with T = unsigned int]’:
/home/andrew/upp/uppsrc/Core/Topt.h:215:   instantiated from ‘void AssertMoveable(T*) [with T = unsigned int]’
/home/andrew/upp/uppsrc/Core/Vcont.h:85:   instantiated from ‘Vector<T>::~Vector() [with T = unsigned int]’
/home/andrew/upp/uppsrc/CtrlLib/Bar.cpp:318:   instantiated from here
/home/andrew/upp/uppsrc/Core/Topt.h:206: error: invalid type argument of ‘unary *’
/home/andrew/upp/uppsrc/Core/Topt.h: In function ‘void AssertMoveable0(T*) [with T = void*]’:
/home/andrew/upp/uppsrc/Core/Topt.h:215:   instantiated from ‘void AssertMoveable(T*) [with T = void*]’
/home/andrew/upp/uppsrc/Core/Vcont.h:85:   instantiated from ‘Vector<T>::~Vector() [with T = void*]’
/home/andrew/upp/uppsrc/Core/Vcont.h:194:   instantiated from ‘Array<T>::Array() [with T = XmlNode]’
/home/andrew/upp/uppsrc/Core/XML.h:147:   instantiated from here
/home/andrew/upp/uppsrc/Core/Topt.h:206: error: ‘void*’ is not a pointer-to-object type
CtrlLib.icpp
/home/andrew/upp/uppsrc/CtrlLib/TabCtrl.h:142: error: extra qualification ‘TabDlg::’ on member ‘Add0’
/home/andrew/upp/uppsrc/Core/Topt.h: In function ‘void AssertMoveable0(T*) [with T = unsigned char]’:
/home/andrew/upp/uppsrc/Core/Topt.h:215:   instantiated from ‘void AssertMoveable(T*) [with T = unsigned char]’
/home/andrew/upp/uppsrc/Core/Vcont.h:85:   instantiated from ‘Vector<T>::~Vector() [with T = unsigned char]’
/home/andrew/upp/uppsrc/Draw/PixelArray.h:137:   instantiated from here
/home/andrew/upp/uppsrc/Core/Topt.h:206: error: invalid type argument of ‘unary *’
/home/andrew/upp/uppsrc/Core/Topt.h: In function ‘void AssertMoveable0(T*) [with T = int]’:
/home/andrew/upp/uppsrc/Core/Topt.h:215:   instantiated from ‘void AssertMoveable(T*) [with T = int]’
/home/andrew/upp/uppsrc/Core/Vcont.h:85:   instantiated from ‘Vector<T>::~Vector() [with T = int]’
/home/andrew/upp/uppsrc/RichText/Txt.h:84:   instantiated from here
/home/andrew/upp/uppsrc/Core/Topt.h:206: error: invalid type argument of ‘unary *’
/home/andrew/upp/uppsrc/Core/Topt.h: In function ‘void AssertMoveable0(T*) [with T = void*]’:
/home/andrew/upp/uppsrc/Core/Topt.h:215:   instantiated from ‘void AssertMoveable(T*) [with T = void*]’
/home/andrew/upp/uppsrc/Core/Vcont.h:85:   instantiated from ‘Vector<T>::~Vector() [with T = void*]’
/home/andrew/upp/uppsrc/Core/Vcont.h:194:   instantiated from ‘Array<T>::Array() [with T = XmlNode]’
/home/andrew/upp/uppsrc/Core/XML.h:147:   instantiated from here
/home/andrew/upp/uppsrc/Core/Topt.h:206: error: ‘void*’ is not a pointer-to-object type
1 file(s) compiled in (0:09.00) 9002 msec/file

There were errors. (0:58.50)


This is from compiling the AddressBook example
Re: any experiments with gcc4.1? [message #1677 is a reply to message #1676] Mon, 13 March 2006 19:03 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
OMG, not again.... We have to workaround this GCC bug for each single release since gcc 3.0 - and keeping it work with all versions on the way is more and more trouble....

Sad

Mirek
Re: any experiments with gcc4.1? [message #1678 is a reply to message #1677] Mon, 13 March 2006 19:09 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, actually, maybe this time it is the workaround that causes the trouble...

Core/Topt.h: 222

#if defined(COMPILER_MSC) || defined(COMPILER_GCC)
	#define NTL_MOVEABLE(T) inline void AssertMoveable0(T *) {}
#else
	#define NTL_MOVEABLE(T) template<> inline void AssertMoveable<T>(T *) {}
#endif


Please try to change it to

#if defined(COMPILER_MSC)


so that GCC branch will use variant with template<>. If it will work, we will simply detect GCC 4.1 and use that....

Mirek
Re: any experiments with gcc4.1? [message #1679 is a reply to message #1678] Mon, 13 March 2006 19:13 Go to previous messageGo to next message
abarilla is currently offline  abarilla
Messages: 9
Registered: March 2006
Promising Member
That fixed it except for the TabDlg error which is also easily fixed.
Re: any experiments with gcc4.1? [message #1683 is a reply to message #1679] Mon, 13 March 2006 20:35 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
abarilla wrote on Mon, 13 March 2006 13:13

That fixed it except for the TabDlg error which is also easily fixed.



Ehm, could you be more specific? Smile I am going to use that fix in sources, so that this week dev version is possibly fixed....

Mirek
Re: any experiments with gcc4.1? [message #1693 is a reply to message #1683] Mon, 13 March 2006 22:17 Go to previous messageGo to next message
abarilla is currently offline  abarilla
Messages: 9
Registered: March 2006
Promising Member
Line 142 of TabCtrl.h gets changed from:

TabCtrl::Item& TabDlg::Add0(Ctrl& tab, const char *text);


to:

TabCtrl::Item& Add0(Ctrl& tab, const char *text);
Re: any experiments with gcc4.1? [message #1694 is a reply to message #1693] Mon, 13 March 2006 22:56 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Please, could you check whether this:

#if defined(COMPILER_MSC) || defined(COMPILER_GCC) && (__GNUC__ < 4 || __GNUC_MINOR__ < 1)
	#define NTL_MOVEABLE(T) inline void AssertMoveable0(T *) {}
#else
	#define NTL_MOVEABLE(T) template<> inline void AssertMoveable<T>(T *) {}
#endif


fixes U++ to compile with 4.1? (Just to test whether the macro condition is right...)

Mirek
Re: any experiments with gcc4.1? [message #1695 is a reply to message #1694] Tue, 14 March 2006 00:11 Go to previous messageGo to next message
abarilla is currently offline  abarilla
Messages: 9
Registered: March 2006
Promising Member
It appears if I spoke to soon. I must have missed errors because both the removal of defined(COMPILER_GCC) and the new code cause the following errors:

----- CtrlLib ( GUI GCC32 DEBUG SHARED DEBUG_FULL BLITZ LINUX ) (1 / 10)
BLITZ: LabelBase.cpp Button.cpp Switch.cpp EditField.cpp Text.cpp LineEdit.cpp DocEdit.cpp ScrollBa
	r.cpp HeaderCtrl.cpp ArrayCtrl.cpp DropList.cpp DropPusher.cpp DropChoice.cpp Static.cpp Splitt
	er.cpp SliderCtrl.cpp ColumnList.cpp Progress.cpp AKeys.cpp RichTextView.cpp RichClip.cpp Promp
	t.cpp Help.cpp Bar.cpp MenuBar.cpp ToolBar.cpp ToolTip.cpp StatusBar.cpp TabCtrl.cpp TreeCtrl.c
	pp DlgColor.cpp ColorPopup.cpp ColorPusher.cpp FileList.cpp FileSel.cpp Windows.cpp Win32.cpp C
	trlUtil.cpp Update.cpp LNGCtrl.cpp
40 file(s) compiled in (0:41.37) 1034 msec/file
CtrlLib.icpp
1 file(s) compiled in (0:04.45) 4456 msec/file
----- Report ( GUI GCC32 DEBUG SHARED DEBUG_FULL BLITZ LINUX ) (2 / 10)
BLITZ: Report.cpp ReportDlg.cpp
2 file(s) compiled in (0:04.89) 2449 msec/file
ReportI.icpp
1 file(s) compiled in (0:03.57) 3578 msec/file
----- CtrlCore ( GUI GCC32 DEBUG SHARED DEBUG_FULL BLITZ LINUX ) (3 / 10)
BLITZ: Frame.cpp Ctrl.cpp CtrlChild.cpp CtrlPos.cpp CtrlDraw.cpp CtrlMouse.cpp CtrlKbd.cpp CtrlTime
	r.cpp LocalLoop.cpp TopWindow.cpp Win32Wnd.cpp Win32Proc.cpp TopWin32.cpp DHCtrl.cpp X11Wnd.cpp
	 X11Proc.cpp TopWinX11.cpp X11Clip.cpp X11App.cpp
19 file(s) compiled in (0:09.23) 486 msec/file
----- RichText ( GUI GCC32 DEBUG SHARED DEBUG_FULL BLITZ LINUX ) (4 / 10)
BLITZ: Object.cpp ParaData.cpp ParaType.cpp ParaPaint.cpp TxtData.cpp TxtPaint.cpp TxtOp.cpp Format
	.cpp TableCell.cpp TableLayout.cpp TablePaint.cpp TableData.cpp TextPaint.cpp TextStyle.cpp Tex
	tClipboard.cpp TextData.cpp TextTable.cpp EncodeQtf.cpp ParseQtf.cpp EncodeRTF.cpp ParseRTF.cpp
	 EncodeHTML.cpp Util.cpp
23 file(s) compiled in (0:22.77) 990 msec/file
----- Draw ( GUI GCC32 DEBUG SHARED DEBUG_FULL BLITZ LINUX ) (5 / 10)
BLITZ: DrawWin32.cpp DrawX11.cpp DrawText.cpp DrawTextWin32.cpp DrawTextXlfd.cpp DrawTextXft.cpp SS
	ettings.cpp Draw.cpp DrawOpWin32.cpp DrawOpX11.cpp Drawing.cpp MetaFile.cpp DrawUtil.cpp DrawTe
	xtUtil.cpp Display.cpp Debug.cpp PixelArray.cpp PixelBlt.cpp PixelPal.cpp PixelUtil.cpp Image.c
	pp ImageUtil.cpp io.cpp bmp.cpp
24 file(s) compiled in (0:24.10) 1004 msec/file
----- Core ( GUI GCC32 DEBUG SHARED DEBUG_FULL BLITZ LINUX ) (6 / 10)
BLITZ: Mt.cpp Thread.cpp heap.cpp heapdbg.cpp String.cpp StrUtil.cpp CharSet.cpp Path.cpp App.cpp S
	tream.cpp Log.cpp Debug.cpp Util.cpp mathutil.cpp Cont.cpp Callback.cpp Color.cpp Gtypes.cpp Ti
	meDate.cpp Value.cpp Convert.cpp Format.cpp t.cpp Lang.cpp parser.cpp XML.cpp Xmlize.cpp Uuid.c
	pp Ptr.cpp Topic.cpp Win32Com.cpp Dli.cpp
/home/andrew/upp/uppsrc/Core/Topt.h: In function ‘unsigned int GetHashValue(const T&) [with T = con
	st char*]’:
/home/andrew/upp/uppsrc/Core/Index.h:77:   instantiated from ‘unsigned int StdHash<T>::operator()(c
	onst T&) const [with T = const char*]’
/home/andrew/upp/uppsrc/Core/Index.hpp:192:   instantiated from ‘int AIndex<T, V, HashFn>::Find(con
	st T&) const [with T = const char*, V = Vector<const char*>, HashFn = StdHash<const char*>]’
/home/andrew/upp/uppsrc/Core/Map.h:13:   instantiated from ‘int AMap<K, T, V, HashFn>::Find(const K
	&) const [with K = const char*, T = const char*, V = Vector<const char*>, HashFn = StdHash<cons
	t char*>]’
/home/andrew/upp/uppsrc/Core/t.cpp:222:   instantiated from here
/home/andrew/upp/uppsrc/Core/Topt.h:393: error: request for member ‘GetHashValue’ in ‘x’, which is 
	of non-class type ‘const char* const’

There were errors. (1:59.08)
Re: any experiments with gcc4.1? [message #1696 is a reply to message #1695] Tue, 14 March 2006 00:20 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Please try Core/t.cpp:186

int current_lang;

template<>
inline unsigned GetHashValue(const char * const &s)
{
	return GetPtrHashValue(s);
}


Mirek

[Updated on: Tue, 14 March 2006 00:21]

Report message to a moderator

Re: any experiments with gcc4.1? [message #1697 is a reply to message #1696] Tue, 14 March 2006 08:30 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

Mirek if you want to experiment with gcc 4.x on windows download it from here:
http://oss.netfarm.it/mplayer-win32.php
(go to misc files section...)
Re: any experiments with gcc4.1? [message #1707 is a reply to message #1696] Tue, 14 March 2006 16:32 Go to previous messageGo to next message
abarilla is currently offline  abarilla
Messages: 9
Registered: March 2006
Promising Member
That did it. And this time I made sure the example app actually ran.
Re: any experiments with gcc4.1? [message #2106 is a reply to message #1697] Sat, 01 April 2006 13:42 Go to previous messageGo to next message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
unodgs wrote on Tue, 14 March 2006 02:30

Mirek if you want to experiment with gcc 4.x on windows download it from here:
http://oss.netfarm.it/mplayer-win32.php
(go to misc files section...)

Did anybody tried this? Is gcc 4.1 working out of the box with U++ on Windows?
Re: any experiments with gcc4.1? [message #2110 is a reply to message #2106] Sat, 01 April 2006 15:54 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
hojtsy wrote on Sat, 01 April 2006 06:42

unodgs wrote on Tue, 14 March 2006 02:30

Mirek if you want to experiment with gcc 4.x on windows download it from here:
http://oss.netfarm.it/mplayer-win32.php
(go to misc files section...)

Did anybody tried this? Is gcc 4.1 working out of the box with U++ on Windows?



I did Wink If I remember well, compilation was OK, linking failed. Did not investigated further....

Mirek
Previous Topic: New To U++...Where to start?
Next Topic: problem to compile GUI examples with makefiles and freetype under Gentoo
Goto Forum:
  


Current Time: Mon Apr 29 10:55:09 CEST 2024

Total time taken to generate the page: 0.02548 seconds