Bug #19111 2013-09-05 06:47

mojca

m_WorkingCopy: array initializer must be an initializer list

When compiling the released version of codeblocks-12.11release8629 with clang on Mac OS X 10.7 with Xcode 4.6 I first had to fix src/sdk/wxscintilla/src/PlatWX.cpp to make the code compile, else I ended up with
    src/PlatWX.cpp:304:19: error: variable length array of non-POD element type 'wxPoint'
but that seems to have been fixed in SVN already.

But then I hit another problem, namely:

librariesdlg.cpp:93:7: error: array initializer must be an initializer list
    , m_WorkingCopy(knownLibraries)
      ^

I tried to compile the code from trunk, but it doesn't seem that anything has changed there and compilation also fails a lot earlier there.

/bin/sh ../../../../libtool --tag=CXX   --mode=compile /usr/bin/clang++ -DHAVE_CONFIG_H -I. -I../../../../src/include -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/lib/wx/include/gtk2-unicode-release-2.8 -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__  -I../../../../src/include -I../../../../src/sdk/wxscintilla/include -I./../wxContribItems/wxFlatNotebook/include -I../../../../src/include/scripting/include -I../../../../src/include/scripting/sqplus -I../../../../src/include/scripting/squirrel -I../../../../src/include/scripting/bindings -I../../../../src/include/mozilla_chardet  -I/opt/local/include -Ulinux -Uunix  -O2 -ffast-math -DCB_AUTOCONF -pipe -Os -arch x86_64 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT projectmissinglibs.lo -MD -MP -MF .deps/projectmissinglibs.Tpo -c -o projectmissinglibs.lo projectmissinglibs.cpp
libtool: compile:  /usr/bin/clang++ -DHAVE_CONFIG_H -I. -I../../../../src/include -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/lib/wx/include/gtk2-unicode-release-2.8 -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/2.8/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -I../../../../src/include -I../../../../src/sdk/wxscintilla/include -I./../wxContribItems/wxFlatNotebook/include -I../../../../src/include/scripting/include -I../../../../src/include/scripting/sqplus -I../../../../src/include/scripting/squirrel -I../../../../src/include/scripting/bindings -I../../../../src/include/mozilla_chardet -I/opt/local/include -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -pipe -Os -arch x86_64 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT projectmissinglibs.lo -MD -MP -MF .deps/projectmissinglibs.Tpo -c projectmissinglibs.cpp  -fno-common -DPIC -o .libs/projectmissinglibs.o
librariesdlg.cpp:93:7: error: array initializer must be an initializer list
    , m_WorkingCopy(knownLibraries)
      ^
1 error generated.
Category
 
Group
Platform:Mac
Status
Closed
Close date
2013-10-01 23:44
Assigned to
 
mojca 2013-09-17 07:36

I submitted the patch in "Patch #3498", so this ticket may be closed.

mojca 2013-10-01 21:34

This ticket may be closed. It was fixed in r9378.

tpetrov 2013-10-01 23:44

This bug is now fixed in HEAD.

Thank you for reporting it.