Code::Blocks Forums

User forums => Help => Topic started by: Buggy on October 15, 2007, 04:44:19 pm

Title: Build (and RUN) Problems
Post by: Buggy on October 15, 2007, 04:44:19 pm
Hello, i have installed all programms and dlls and MinGW from http://forums.codeblocks.org/index.php/topic,7090.0.html
But now if i want to Build and Run that:
Code
mingw32-gcc.exe   -IC:\MinGW\include  -c C:\Projekte\mhb\Untitled1.c -o C:\Projekte\mhb\Untitled1.o
C:\Projekte\mhb\Untitled1.c:1:25: iostream.h: No such file or directory
C:\Projekte\mhb\Untitled1.c:2: error: syntax error before "namespace"
C:\Projekte\mhb\Untitled1.c:2: warning: data definition has no type or storage class
C:\Projekte\mhb\Untitled1.c: In function `main':
C:\Projekte\mhb\Untitled1.c:6: error: `cout' undeclared (first use in this function)
C:\Projekte\mhb\Untitled1.c:6: error: (Each undeclared identifier is reported only once
C:\Projekte\mhb\Untitled1.c:6: error: for each function it appears in.)
C:\Projekte\mhb\Untitled1.c:7: error: `cin' undeclared (first use in this function)
Process terminated with status 1 (0 minutes, 0 seconds)
6 errors, 1 warnings
Title: Re: Build (and RUN) Problems
Post by: XayC on October 15, 2007, 04:49:25 pm
Are you sure you installed and configured MinGW so that it will work with Code::Blocks?
http://wiki.codeblocks.org/index.php?title=MinGW_installation (http://wiki.codeblocks.org/index.php?title=MinGW_installation)
It looks like the header is missing or it's not where the compiler is looking for it. Also are you using MS Windows Vista?

Regards, XayC
Title: Re: Build (and RUN) Problems
Post by: Buggy on October 16, 2007, 09:22:48 pm
I have installed it correct in directory c:\MinGW and i have M$ Windows XP Home
Title: Re: Build (and RUN) Problems
Post by: XayC on October 16, 2007, 10:25:14 pm
You may try to check the file extension so that you are not compiling a C file containing C++ code and that you didn't include <iostream.h> but <iostream> instead.

Regards, XayC