User forums > Help

cannot compile

<< < (5/6) > >>

Miguel Gimenez:
It seems G++ is not installed (is an option). Try


--- Code: ---mingw-get update
--- End code ---

and then


--- Code: ---mingw-get install g++
--- End code ---

After this the original command (with mingw32-g++.exe) should work. Probably the compiler executables must be configured again in CB.

wobien:
Yes, it compiles!

Miguel Gimenez and BlueHazzard, many thanks!

The only thing I don't understand is how it is possible that it compiled when I started the project???

Miguel Gimenez:
Do you have two MinGW installations?. Probably there was one prior installation of MinGW bundled with Code::Blocks (under Program Files) that was working, and later the automatic detection found the c:\mingw one (as it is the expected path for MinGW).

wobien:
Where would that Mingw installation bundled with Code::Blocks be? In a subdirectory of the Code::Blocks directory in Program Files?

Miguel Gimenez:
IIRC it was installed under Program Files\Codeblocks, but I have not installed the bundled version in years.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version