User forums > Using Code::Blocks

MinGW32 and Code::Blocks errors

(1/2) > >>

Wahooney:
Hey guys,

I'm having some serious problems with c::b and mingw32. As of this morning I haven't been able to build my projects created in c::b, which is odd since it was working 100% yesterday.

Firstly, I have read through the Installing MinGW on Vista article in the Wiki and although I'm having most of the same problems, I am actually running Windows XP.

Ok, firstl of all c::b started by reporting that it couldn't find cc1plus.exe, which I subsequently fixed by adding it's folder to Toolchain Executables > Additional Paths.

Then after that, on compile, I get the following error:
C:/MinGW/include/string.h:24:20: stddef.h: No such file or directory

I fix that by adding:
C:\MinGW\include\c++\3.4.5
C:\MinGW\include\c++\3.4.5\backward
C:\MinGW\include\c++\3.4.5\mingw32
C:\MinGW\lib\gcc\mingw32\3.4.5\include

to my Search directories > Complier.

Now, after that, on compiling, I get the following error:
ld: crt2.o: No such file: No such file or directory

Which is bizarre, because the path to that file is in my Search directories > Linker, C:\MinGW\lib.

I have a feeling that this is related to a windows update or something similar.

Has anyone else encountered a problem like this?

Thanks guys.

raph:
Normally you simply set Global compiler settings->Toolchain executables->Compiler's installation directory to point to your mingw installation and you are fine (be sure to use a current nightly build).

Wahooney:
The compiler's installation directory is correct and it still doesn't work :cry:

Any other suggestions?

Biplab:
Please install MinGW runtime package.


--- Quote ---http://downloads.sourceforge.net/mingw/mingw-runtime-3.12.tar.gz?modtime=1174904892&big_mirror=1
--- End quote ---

Wahooney:
The runtime has been installed and I still get the same error:

I have crt2.o, in C:\MinGW\lib, and my Search directories > Linker has a path pointing to that folder too.

I just don't know...

Navigation

[0] Message Index

[#] Next page

Go to full version