User forums > General (but related to Code::Blocks)
GCC 4.2.1 binary release for mingw is available from MINGW
pir:
--- Quote from: thomas on August 30, 2007, 06:01:06 pm ---Do you have the C++ compiler installed at all? This sounds like a stupid question, but it can actually happen.
gcc (or mingw-gcc) is no compiler, you know. It is only a frontend to about half a dozen different compilers that all work via one common interface, and g++ being one of these compilers.
If gcc complains that there is no such file as mingw32-g++.exe, this suggests that you have downloaded the base package, but not the C++ package (or, it could be that paths are set up badly).
--- End quote ---
I installed gcc-core and the g++ frontend together with the runtime and win32api stuff. Am I forgetting something? The path contains c:\mingw\bin. The compiler seems to be starting but but bails with an internal error. Basically, I have installed 3.4.5 in exactly the same way and that works fine. I can't see what I'm doing differently.
BTW: 'Stupid' questions are often very good questions!
thomas:
Hmm... I have done the exact same (even the install path and the OS are incidentally the same).
Everything just works, did not have to configure a single thing... this makes it kind of hard :(
pir:
Right then!
I have installed version 4.2.1 on another machine and it (nominally!) works - more on this below. Therefore I conclude that part of the OS on the first machine I tried and which gave the CreateProcess problem has got mangled. In fact, I have seen this before with XP - strange, illogical things start creeping in. I will repair over the weekend and see if that makes a difference. Other than that, a fresh install. (Oh joy!)
I say 4.2.1 nominally works. I can build the "Hello world!" program from the command line, no problem. But when I try to build it from C::B, I get loads of weird linker errors: undefined references to __gxx_personality_v0, _Unwind_SjLj_Register, _Unwind_SjLj_Unregister, etc. The last ones puzzle me big time! I have absolutely definitely installed both the core and g++ dw2 variants. (Very sure. Double-checked, repeated install.) But the linker seems to be looking for bits from the other sjlj variant of version 4.2.1? Or might it be from 3.4.5 which co-exists on the machine but obviously in a different directory. Very sure I have the toolchain exe location/filenames correct. Nonetheless the program builds successfully from the command line!
Doh!
RJP Computing:
I have built wxWidgets with MinGW Gcc_v4.2.1-dw2 and created a custom "unofficial" installer for MinGW Gcc 4.2.1-dw2. Please see if these help you get it working. I have had really good luck using this method. That is why I shared.
http://wxpack.sf.net/Main/Downloads
pir:
Interesting. But building wxWidgets invokes the compiler from the command line via make. Have you managed to build anything by spawning 4.2.1 from within CodeBlocks? Like "Hello world", for example? It would be helpful to know if someone else can do this without problems.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version