After getting pretty profiecent with HTML and PHP, i decided to start learning C++; i quickly ran into a disheartening problem...
#include <iostream>
using namespace std;
int main()
{
cout<<"Hello World!\n";
cin.get();
}
That is the (very simple) code i was trying to compile... i get the message;
Compiling: main.cpp
mingw32-g++.exe: installation problem, cannot exec `cc1plus': No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
I thought "cin.get();" kept the window open so i could check it was working. I'm using Code::Blocks, if it matters.
Name:
Anonymous2008-02-29 14:57
sepples
Name:
Anonymous2008-02-29 15:06
mingw32-g++.exe: installation problem, cannot exec `cc1plus': No such file or directory
Your cin.get() won't do much if your compiler is broken.
Name:
Anonymous2008-02-29 15:36
Should i reinstall?
Name:
Anonymous2008-02-29 16:07
>>4
Well, you should remove it and install the GCC C Compiler.
Name:
Anonymous2008-02-29 18:51
Christ.
Name:
Anonymous2008-02-29 19:07
>>5
mingw is gcc, idiot
yeah, try reinstalling or find better instructions on getting gcc running on windows (maybe try cygwin)
>>1
Don't use Code::Blocks. Install Cygwin, and check off gcc during installation. Add -mno_cygwin when compiling if you don't want the dependency on cygwin.dll, but you'll lose POSIX functionality.