News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

gcc build error

Started by efp, March 18, 2011, 10:41:43 PM

Previous topic - Next topic

efp

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

seahawkibiza

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.)


ouch

codeblocks "officially" still uses the old 2.8 version of wxwidgets. There is a 2.9 project file you can try out though.

seahawkibiza

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

oBFusCATed

Codeblocks-wx29.cbp, but it is windows only
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

seahawkibiza

Ah, ok. So I'm trying to uninstall wxWidgets and install the 2.8.... I will tell, if this was a solution.


seahawkibiza

Ok, looks better...

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


oBFusCATed

Cannot compute, please write more carefully, so we can understand what you're trying to say/ask...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

seahawkibiza

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)

ouch

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.

oBFusCATed

Quote from: ouch on July 25, 2011, 10:19:02 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.

Quote from: ouch on July 25, 2011, 10:19:02 PM
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)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

ouch

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