User forums > Help

MinGW problems

(1/3) > >>

PhilG:
Hello all!  :D

I've been using the old (possibly ancient :P) RC2 of Code::Blocks for some time now. I'm only learning C++ as a bit of a hobby, but from my experience C::B is excellent. Before using it, I tried MS VC++ .NET, which I didn't get on with.

However, today I decided to update both Code::Blocks (to the 4300 Build) and the MinGW compiler.
First off, I completey (as far as I'm aware) removed the old versions of both of these. I then dowloaded the 5.1.3 installer for MinGW and proceeded to install, which seemed to go fine.

I then decompressed the CB package, extracted the Wx dll, and tried to start up.
I got an error informing me that the MinGw.... dll was missing, which was a little puzzling, as I believe that should only be necessary if MinGW is not installed?

I tried it with the mingw dll, and it opened up fine. However, trying to compile even a simple test brings up the following error:


--- Quote ---Compiling: C:\Documents and Settings\Phils\Desktop\test.cpp
Execution of 'mingw32-g++.exe  -IC:\MinGW\include  -c "C:\Documents and Settings\Phils\Desktop\test.cpp" -o "C:\Documents and Settings\Phils\Desktop\test.o"' in 'C:\Documents and Settings\Phils\Desktop\CodeBlocks' failed.
Nothing to be done.
--- End quote ---

I tried removing both CB and MinGW, to no avail.

Any suggestions as to what be my problem (and, more importantly, what can be done to get around it)?

Cheers,

Phil Glass

Biplab:

--- Quote from: PhilG on July 24, 2007, 08:06:12 pm ---
--- Quote ---Compiling: C:\Documents and Settings\Phils\Desktop\test.cpp
Execution of 'mingw32-g++.exe  -IC:\MinGW\include  -c "C:\Documents and Settings\Phils\Desktop\test.cpp" -o "C:\Documents and Settings\Phils\Desktop\test.o"' in 'C:\Documents and Settings\Phils\Desktop\CodeBlocks' failed.
Nothing to be done.
--- End quote ---

I tried removing both CB and MinGW, to no avail.

Any suggestions as to what be my problem (and, more importantly, what can be done to get around it)?

--- End quote ---

Please wait for the next nightly. A bug crept into last nightly which is causing that problem. :)

Temporarily you can fix the issue by adding C:\MinGW\bin in your PATH.

PhilG:
Hi,

Following your advice, I grabbed the latest nightly build (25th) just a few minutes ago.

However, I still have the exact same problem, and still require the MinGW dll for C::B to start :?

I don't see how MinGW could be the problem - The executables are stored at C:\MinGW\bin, and I used the installer, so there's no chance of me having made an error with extraction etc.

Is there a way I can test the compiler (I tried it with the command line, and although it seemed to do something, I'm not all that sure where the compiled/object file (s) will be stored?)? Any other ideas?

Cheers,

Phil Glass

EDIT: Oh, and I get the following message in the Code::Blocks Debug tab:

"[22:26:15.437]: Can't find compiler executable in your search path (GNU GCC Compiler)..."

killerbot:
mingw dll is needed by cb, mingw10.dll  : for multithreading. Is you C:\MingW\bin in your path ??

PhilG:
Hiya killerbot  :D

Hmmm - This statement:


--- Quote ---For those who might need this one (when no MingW installed on your system) : the mingw10m.dll : http://prdownload.berlios.de/codeblocks/mingwm10.7z
--- End quote ---

in each nightly build post gave me the impression I didn't need to use that DLL (as I (at least should) have MinGW installed)?

However, the file I've downloaded (from that link) gives me a dll called "mingwm10.dll"? Is that incorrect, or was it just a typo?  :P

I have both of those dlls in the same folder as my Code::Blocks install/executable ("C:\Documents and Settings\Phils\Desktop\CodeBlocks").


--- Quote ---Is you C:\MingW\bin in your path ??
--- End quote ---

I'm new to this, so bear with me  :P

If by "path" you mean Settings>>Compiler + Debugger Settings >>Toolchain executables, yes "C:\MinGW\bin" is there.

Cheers,

Phil Glass

Navigation

[0] Message Index

[#] Next page

Go to full version