Thread: [Dev-C++] C++ compiling problems
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Matthews <dem...@uw...> - 2003-01-08 13:11:07
|
I've been trying to teach myself c++ recently, so I started out with this
basic program.
#include <iostream>
#include <cstdlib>
int main()
{
using namespace std;
cout << "Hello.\n";
cout << "Press ENTER to continue.";
getchar();
return 0;
}
I attempted to compile this in Dev-C++ 4.9.7.0, which I downloaded with
gcc3.2 packaged along with it. 172 errors are given, which all seem to be
based off of a missing "c++config.h" which is included from iostream. So,
I try to find the header file. The one I get is faulty, so I abandon it.
Reinstalling doesn't put it in, I tried twice. In a last-ditch effort, I
reinstall Dev-C++ 4.9.5.0 which I downloaded packaged with gcc2.89 (or
whatever the one before 3.2 was.) Compiling the same program (except with
changing the <iostream> to <iostream.h> and also including <stdio.h>) works
perfectly. It appears as though I'll be doing my c++ coding in 4.9.5.0 for
now, but can anyone help me figure out the reason for this?
|
|
From: <or...@vp...> - 2003-01-08 14:59:36
|
Hello Matthews!
> I've been trying to teach myself c++ recently, so I started out with this
> basic program.
>
> #include <iostream>
> #include <cstdlib>
>
> int main()
> {
> using namespace std;
> cout << "Hello.\n";
> cout << "Press ENTER to continue.";
> getchar();
> return 0;
> }
The above program compiles perfectly from Dev-C++ (4.9.6.8), and even from a
command prompt. I have MinGW (gcc 3.2) separately installed. The command is:
g++.exe code.cpp -o code.exe
I think there may some installation/corruption problem with your gcc. If you
could post the errors, I would be able to help you more.
--
Greetings,
Balázs
U.I.: Üdv Czinege Tamás :)
|
|
From: Ioannis V. <no...@ho...> - 2003-01-08 16:34:46
|
-------Original Message-------=0D
=0D
From: Matthews=0D
Date: =D4=E5=F4=DC=F1=F4=E7, 8 =C9=E1=ED=EF=F5=DC=F1=E9=EF=F2 2003 3:12:2=
2 =EC=EC=0D
To: dev...@li...=0D
Subject: [Dev-C++] C++ compiling problems=0D
=0D
I've been trying to teach myself c++ recently, so I started out with this=
=0D
basic program.=0D
=0D
#include <iostream>=0D
#include <cstdlib>=0D
=0D
// for getchar()=0D
#include <cstdio>=0D
=0D
=0D
=0D
int main()=0D
{=0D
using namespace std;=0D
cout << "Hello.\n";=0D
cout << "Press ENTER to continue.";=0D
getchar();=0D
return 0;=0D
}=0D
=0D
=0D
=0D
Ioannis Vranos=0D
=0D
* Programming pages: http://www.noicys.freeurl.com=0D
* Alternative URL: http://run.to/noicys=20
|
|
From: Matthews <dem...@uw...> - 2003-01-08 20:54:25
|
The problem, though, is the missing c++config.h. What you suggest
shouldn't make any difference.
At 06:34 PM 08/01/2003 +0200, Ioannis Vranos wrote:
>-------Original Message-------
>=20
>From: Matthews
>Date: =D4=E5=F4=DC=F1=F4=E7, 8 =C9=E1=ED=EF=F5=DC=F1=E9=EF=F2 2003 3:12:22=
=EC=EC
>To: dev...@li...
>Subject: [Dev-C++] C++ compiling problems
>=20
>I've been trying to teach myself c++ recently, so I started out with this
>basic program.
>=20
>#include <iostream>
>#include <cstdlib>
>=20
>// for getchar()
>#include <cstdio>
>=20
>=20
>=20
>int main()
>{
>using namespace std;
>cout << "Hello.\n";
>cout << "Press ENTER to continue.";
>getchar();
>return 0;
>}
>=20
>=20
>=20
>Ioannis Vranos
>=20
>* Programming pages: http://www.noicys.freeurl.com
>* Alternative URL: http://run.to/noicys=20
>
>
>-------------------------------------------------------
>This SF.NET email is sponsored by:
>SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Ioannis V. <no...@ho...> - 2003-01-08 21:45:32
|
Well that is an implementation issue. However #include <cstdio> should no= t be omitted.=0D =0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys =0D =0D =0D -------Original Message-------=0D =0D From: Matthews=0D Date: =D4=E5=F4=DC=F1=F4=E7, 8 =C9=E1=ED=EF=F5=DC=F1=E9=EF=F2 2003 10:54:= 03 =EC=EC=0D To: Ioannis Vranos; Dev-C++ Mailing List=0D Subject: Re: [Dev-C++] C++ compiling problems=0D =0D The problem, though, is the missing c++config.h. What you suggest=0D shouldn't make any difference.=0D =0D =0D =0D At 06:34 PM 08/01/2003 +0200, Ioannis Vranos wrote:=0D >-------Original Message-------=0D > =0D >From: Matthews=0D >Date: =D4=E5=F4=DC=F1=F4=E7, 8 =C9=E1=ED=EF=F5=DC=F1=E9=EF=F2 2003 3:12:= 22 =EC=EC=0D >To: dev...@li...=0D >Subject: [Dev-C++] C++ compiling problems=0D > =0D >I've been trying to teach myself c++ recently, so I started out with thi= s=0D >basic program.=0D > =0D >#include <iostream>=0D >#include <cstdlib>=0D > =0D >// for getchar()=0D >#include <cstdio>=0D > =0D > =0D > =0D >int main()=0D >{=0D >using namespace std;=0D >cout << "Hello.\n";=0D >cout << "Press ENTER to continue.";=0D >getchar();=0D >return 0;=0D >}=0D > =0D > =0D > =0D >Ioannis Vranos=0D > =0D >* Programming pages: http://www.noicys.freeurl.com=0D >* Alternative URL: http://run.to/noicys =0D >=0D >=0D >-------------------------------------------------------=0D >This SF.NET email is sponsored by:=0D >SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.= com=0D >_______________________________________________=0D >Dev-cpp-users mailing list=0D >Dev...@li...=0D >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm=0D >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=0D >=0D =20 |
|
From: Matthews <dem...@uw...> - 2003-01-09 13:36:40
|
Scanning through old mail, I found out that all I needed to do was add "c:\bloodshed\include\c++\mingw32" to the c++ directories and it worked fine. Bleah, and after downloading the full external mingw as well. Thanks for the help though. At 11:45 PM 08/01/2003 +0200, Ioannis Vranos wrote: >Well that is an implementation issue. However #include <cstdio> should not >be omitted. >=20 > > >Ioannis Vranos >=20 >* Programming pages: http://www.noicys.freeurl.com >* Alternative URL: http://run.to/noicys=20 >=20 >=20 >-------Original Message------- >=20 >From: Matthews >Date: =D4=E5=F4=DC=F1=F4=E7, 8 =C9=E1=ED=EF=F5=DC=F1=E9=EF=F2 2003 10:54:03= =EC=EC >To: Ioannis Vranos; Dev-C++ Mailing List >Subject: Re: [Dev-C++] C++ compiling problems >=20 >The problem, though, is the missing c++config.h. What you suggest >shouldn't make any difference. >=20 >=20 >=20 >At 06:34 PM 08/01/2003 +0200, Ioannis Vranos wrote: >>-------Original Message------- >>=20 >>From: Matthews >>Date: =D4=E5=F4=DC=F1=F4=E7, 8 =C9=E1=ED=EF=F5=DC=F1=E9=EF=F2 2003 3:12:22= =EC=EC >>To: dev...@li... >>Subject: [Dev-C++] C++ compiling problems >>=20 >>I've been trying to teach myself c++ recently, so I started out with this >>basic program. >>=20 >>#include <iostream> >>#include <cstdlib> >>=20 >>// for getchar() >>#include <cstdio> >>=20 >>=20 >>=20 >>int main() >>{ >>using namespace std; >>cout << "Hello.\n"; >>cout << "Press ENTER to continue."; >>getchar(); >>return 0; >>} >>=20 >>=20 >>=20 >>Ioannis Vranos >>=20 >>* Programming pages: http://www.noicys.freeurl.com >>* Alternative URL: http://run.to/noicys=20 >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld= http://www.vasoftware.com >>_______________________________________________ >>Dev-cpp-users mailing list >>Dev...@li... >>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >> >=20 > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |