User forums > General (but related to Code::Blocks)
TDM's GCC 4.2.1 (now with iconv, Obj-C++ and Treelang)
TDragon:
--- Quote from: jimmyo on August 02, 2007, 04:20:07 pm ---i use Build.txt description to install and run scripts under mSYS/mingw.
--- End quote ---
This probably won't work without major modification; I build under Ubuntu Linux (7.04), and the scripts aren't designed with mSYS in mind.
At any rate, I'm not entirely certain about the multiple main definitions error, but the undefined reference to yyparse probably means you don't have Bison installed.
--- Quote from: tyrus on August 03, 2007, 03:36:39 pm ---The only problem that I found was in some .la in the lib directory that was pointing to yours cross-compile directory.
--- End quote ---
Oops. Is this causing problems during normal usage?
--- Quote from: roland on August 01, 2007, 03:19:38 am ---can anyone compile allegro 4.2.2 with this?
--- End quote ---
This is definitely a bug in GCC. I'll see about a bug report on this one, too.
raph:
I just decided to try out gcc 4 (your gcc 4.2.1 build) and did a little benchmark.
Here are the results:
Time to build wxMSW 2.8.4 (configuration for cb):
* gcc 3.4.5: 20 min 22 seconds
* gcc 4.2.1: 21 min 55 secondsNote: I didn't redirect console output.
Time to build codeblocks svn 4346 (without contrib plugins):
* gcc 3.4.5: 9 min 24 seconds
* gcc 4.2.1: 11 min 33 seconds
Sizes:
wxmsw28u_gcc_custom.dll
* gcc 3.4.5: 9,86 MB (10.342.139 bytes)
* gcc 4.2.1: 10,3 MB (10.897.346 bytes)
output\codeblocks.exe
* gcc 3.4.5: 1,05 MB (1.105.408 bytes)
* gcc 4.2.1: 1,32 MB (1.387.520 bytes)
output\codeblocks.dll
* gcc 3.4.5: 3,68 MB (3.859.456 bytes)
* gcc 4.2.1: 3,94 MB (4.137.984 bytes)
devel\codeblocks.exe
* gcc 3.4.5: 7,69 MB (8.073.979 bytes)
* gcc 4.2.1: 10,9 MB (11.480.689 bytes)
devel\codeblocks.dll
* gcc 3.4.5: 22,9 MB (24.091.398 bytes)
* gcc 4.2.1: 28,0 MB (29.406.839 bytes)
devel\
* gcc 3.4.5: 96,6 MB (101.298.572 bytes)
* gcc 4.2.1: 136 MB (143.010.198 bytes)
output\
* gcc 3.4.5: 14,7 MB (15.469.645 bytes)
* gcc 4.2.1: 18,3 MB (19.213.389 bytes)
My system:
WinXP Sp2
AMD XP 2600+
1,5 gb ram
Since optimization doesn't greatly matter for me, I think I'll stick to 3.4.5
What do you think?
TDragon:
I achieved similar results in this post (using GCC 4.1.2). If you need optimization, better error detection, or a 3.4.x bug fixed, upgrade; otherwise, stay where you are.
roland:
Thanks TDragon. Can you link to the bug report when its up?
raph: extreamly informative, thanks. Filesize doesn't really matter to me, but things not compiling certainly does. :P I guess for a lot of things I must stick with 3.4.5 for the time being. Still, looking at the /deve/ dir, over a 40MB difference :shock: geeze...
dwmcqueen:
I must be missing something. This is on a clean machine - I followed your instructions and downloaded the other packages (w32api, etc) on your website.
I installed MinGW 4.2.1 to C:MinGW-4.2.1
I get several errors about missing files when compiling a basic console app:
-------------- Build: Debug in Test ---------------
Compiling: main.cpp
In file included from c:/mingw-4.2.1/bin/../lib/gcc/mingw32/4.2.1/../../../../include/c++/4.2.1/mingw32/bits/c++locale.h:47,
from C:/MinGW-4.2.1/include/c++/4.2.1/iosfwd:45,
from C:/MinGW-4.2.1/include/c++/4.2.1/ios:43,
from C:/MinGW-4.2.1/include/c++/4.2.1/ostream:45,
from C:/MinGW-4.2.1/include/c++/4.2.1/iostream:45,
from C:\Test\main.cpp:1:
C:/MinGW-4.2.1/include/c++/4.2.1/clocale:51:20: error: locale.h: No such file or directory
Any thoughts?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version