Code::Blocks Forums

User forums => Help => Topic started by: efp on March 18, 2011, 10:41:43 pm

Title: gcc build error
Post by: efp on March 18, 2011, 10:41:43 pm
Greetings,

I'm trying to build with gcc version 4.1.2 20080704 (Red Hat 4.1.2-50), Target: x86_64-redhat-linux, starting from codeblocks-10.05-src.tar.bz2 and a freshly installed wxWidgets 2.9.1. I'm getting the following error:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../../src/include -I/wrk2/projects/lib/wxWidgets/lib/wx/include/gtk2-unicode-2.9 -I/wrk2/projects/lib/wxWidgets/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I../../../../src/include -I../../../../src/sdk/wxscintilla/include -I../../../../src/include/scripting/include -I../../../../src/include/scripting/bindings -I../../../../src/include/scripting/sqplus -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT sc_util_dialogs.lo -MD -MP -MF .deps/sc_util_dialogs.Tpo -c sc_util_dialogs.cpp  -fPIC -DPIC -o .libs/sc_util_dialogs.o
../../../../src/include/editarrayorderdlg.h:20: error: default argument for parameter of type const wxArrayString& has type long int
make[4]: *** [sc_util_dialogs.lo] Error 1
make[4]: Leaving directory `/wrk2/projects/codeblocks/src/sdk/scripting/bindings'
etc...


Indeed the offending line is:
EditArrayOrderDlg(wxWindow* parent, const wxArrayString& array = 0L);


Did there used to be an implicit conversion for a long int to a wxArrayString, because I don't see one now. The complete constructor list is:
wxArrayString() { }
wxArrayString(const wxArrayString& a) : wxArrayStringBase(a) { }
wxArrayString(size_t sz, const char** a);
wxArrayString(size_t sz, const wchar_t** a);
wxArrayString(size_t sz, const wxString* a);



-efp
Title: Re: gcc build error
Post by: seahawkibiza on July 25, 2011, 07:32:16 pm
Sorry that this is a old thread, but I have the same error-message and the same problem. Some solutions?

What can I do?

(compiling on a LFS-system, wxWidgets is installed fine and running, X11 also running perfectly.)

Title: Re: gcc build error
Post by: ouch on July 25, 2011, 07:50:28 pm
codeblocks "officially" still uses the old 2.8 version of wxwidgets. There is a 2.9 project file you can try out though.
Title: Re: gcc build error
Post by: seahawkibiza on July 25, 2011, 08:11:36 pm
Many thanks for this info.

But I'm still a little bit helpless. In the bug or patches section I can not found anything. Also in the SVN I can not loccate a Patch to 2.9.x of wxWidgets....

Where I must search? Sorry...
Title: Re: gcc build error
Post by: oBFusCATed on July 25, 2011, 08:29:41 pm
Codeblocks-wx29.cbp, but it is windows only
Title: Re: gcc build error
Post by: seahawkibiza on July 25, 2011, 08:43:58 pm
Ah, ok. So I'm trying to uninstall wxWidgets and install the 2.8.... I will tell, if this was a solution.

Title: Re: gcc build error
Post by: seahawkibiza on July 25, 2011, 09:05:20 pm
Ok, looks better...

Now code::blocks will have zip..l. Is'nt a windows-tools? crazy...

Title: Re: gcc build error
Post by: oBFusCATed on July 25, 2011, 09:30:12 pm
Cannot compute, please write more carefully, so we can understand what you're trying to say/ask...
Title: Re: gcc build error
Post by: seahawkibiza on July 25, 2011, 10:14:28 pm
Sorry.....  :D

Because I´ve running on Linux and not on Windows so I decided to uninstall wxWidgets-2.9 and reinstall 2.8.x

Now skips codeblocks this error. Fine.

But Codeblocks will "zip" to pack some images during make. This is crazy, so I cant choose tar or gzip, I must install a derivate of zip, i my case i decided zip30.

It´s still passing make, I will hope in a couple of hours it will be ready... (embedded system)
Title: Re: gcc build error
Post by: ouch on July 25, 2011, 10:19:02 pm
he's talking about zip.exe that is needed in the windows build.

It's a gnu tool. most distributions have this pre-installed. but I imagine a seperate download exists somewhere for your distribution.
Title: Re: gcc build error
Post by: oBFusCATed on July 25, 2011, 10:36:29 pm
he's talking about zip.exe that is needed in the windows build.

I guessed what he was talking about, but this is not the point.
The point is that I should not waste my time to digest what he ment, he should spend his time to ask his question as clear as possible.

It's a gnu tool. most distributions have this pre-installed. but I imagine a seperate download exists somewhere for your distribution.
No, it is not a GNU tool, GNU won't implement a patented algorithm! (it was patented in the past)
Title: Re: gcc build error
Post by: ouch on July 25, 2011, 10:42:58 pm
Well I don't think english is his native language, I don't think he can help it.

also they are sure advertising it like it's a gnu tool if it's not:

http://gnuwin32.sourceforge.net/packages/zip.htm