News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Build (and RUN) Problems

Started by Buggy, October 15, 2007, 04:44:19 PM

Previous topic - Next topic

Buggy

Hello, i have installed all programms and dlls and MinGW from http://forums.next.codeblocks.org/index.php/topic,7090.0.html
But now if i want to Build and Run that:
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

XayC

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
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

Buggy

I have installed it correct in directory c:\MinGW and i have M$ Windows XP Home

XayC

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