Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
CVS seems broken ?
rickg22:
Have you tried installing GCC 3.4.2 or later? Just a thought (I'm a windoze user)
Der Meister:
Well, I don't want to switch to gcc 3.4 because (as far as I know) there were some major changes from 3.3 to 3.4. And I don't want to break my system if something goes wrong. Maybe I will switch someday when I have more reasons or when I'm doing a reinstall - but not just for Code::Blocks.
By the way, does Code::Blocks need the gcc? Or could it be compiled with other compilers, for example like icc?
Edit:
Seems as if I got it working.
I used configure as normal but then changed the CXXFLAGS and CPPFLAGS wich the Makefile uses. I added the preprocessor macros CB_PRECOMP and WX_PRECOMP and changed the include-paths for wx to use my wxGTK-2.6 installation and added the include-path for angelscript.h. It is still compiling, I'm hoping that it will finish successfully.
Here's the commands I have used:
--- Code: ---./configure --enable-contrib --prefix=/opt/codeblocks-cvs
make CXXFLAGS="-g -O2 -O2 -ffast-math -DCB_PRECOMP -DWX_PRECOMP" CPPFLAGS="-I/usr/lib/wx/include/gtk2-ansi-release-2.6 -I/usr/include/wx-2.6 -I../sdk/as/include -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
--- End code ---
This will be followed by a 'make install' if nothing goes wrong.
yop:
--- Quote from: Der Meister on November 19, 2005, 11:46:40 pm ---By the way, does Code::Blocks need the gcc? Or could it be compiled with other compilers, for example like icc?
be followed by a 'make install' if nothing goes wrong.
--- End quote ---
Yes it can you just have to translate the flags (most of them are the same) to the compiler. I built codeblocks with icc as a part of my tests for the addition of icc in cb's supported compilers. But be warned you'll get tons of remarks (well you know the icc way ;))
Der Meister:
Nice...
Well, back to my last approach: It seems as if it compiles well but when it comes to the point where src/src is linked together I get tons of linker-errors, probably the same as anonuser mentioned here.
rickg22:
Der Meister:
I understand. However, notice that many packages today are built with GCC 3.4+. 4.0 on the other hand, is the one you should be wary of.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version