SV: [Dev-C++] Cannot compile using Dev-C++ 5.0 beta 7 (4.9.7.0) ( 10 MB) with Min
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Lars-Bo J. <la...@fo...> - 2003-02-17 12:58:06
|
Well that really does not help on the stated problem. I have the exact =
same
problem, I have developed a program with the gcc 2.95.3 version of =
Dev-Cpp
then I changed my dev-Cpp to the version with gcc 3.2 because I wanted =
to
experiment with wxWindows 2.4. No problem at all, I went thru some =
tutorial
on wxWindows and everything works fine.<?xml:namespace prefix =3D o ns =
=3D
"urn:schemas-microsoft-com:office:office" />
=20
But today I needed to make a change to my original project developed =
with
gcc 2.95.3 and I get the same errors and a lot of them (and all my =
includes
are correct). But due to this thread I realize that none of my =
wxWindows
test/tutorial programs uses iostream hence the problem with gcc 3.2 =
first
appeared today.
=20
Of course I realize that the problem could lay somewhere else then in =
the
dev-cpp distribution but I have tried to install it on an NT4 and an xp
machine and the same problem arise. So I will solve this the same way =
as
Martin Clausen(copying from one ....\bits directory to the other) =
anyway I
glad I am not the only one who experienced this problem hope someone =
not as
newbies as I will have the insight to understand what's going on.
=20
Regards
=20
Lars-Bo
-----Oprindelig meddelelse-----
Fra: Ioannis Vranos [mailto:no...@ho...]
Sendt: 16. februar 2003 14:27
Til: dev...@li...
Emne: Re: [Dev-C++] Cannot compile using Dev-C++ 5.0 beta 7 (4.9.7.0) =
(10
MB) with Min
iostream.h is not proper C++. After the official ANSI/ISO C++ standard
ratification, standard library header files have no .h extension except =
of
the C subset. Everything is defined in namespace std. Example:
=20
#include <iostream>
=20
int main()
{
std::cout<<"Hello new world!\n";
=20
return 0;
}
=20
The C subset header files also exist in the form <cxxxx>, e.g. =
<cstdlib> and
everything in them is also defined in namespace std. Example:
=20
#include <iostream>
#include <cstdlib>
=20
int main()
{
using namespace std;
=20
cout<<"Hello new world!\n";
=20
system("pause");
=20
return 0;
}
=20
=20
A slow thorough read of an up to date C++ book will have much to offer.
=20
=20
Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
<http://www.noicys.freeurl.com/>=20
* Alternative URL: http://run.to/noicys <http://run.to/noicys> =20
=20
-------Original Message-------
=20
From: Martin Clausen <mailto:mar...@ho...>=20
Date: =CA=F5=F1=E9=E1=EA=DE, 16 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2003 =
12:22:31 =EC=EC
To: dev...@li...
<mailto:dev...@li...>=20
Subject: Re: [Dev-C++] Cannot compile using Dev-C++ 5.0 beta 7 =
(4.9.7.0) (10
MB) with Min
=20
Hi again,
Thanks for input Robson. The only iostream.h file in all directories =
under=20
Dev-Cpp is in C:\Dev-Cpp\include\c++\backward.
I swear I haven't touched a single thing :-) - just installed and run =
out of
the box. How do I get the compiler to find the iostream.h file ? and =
all the
other legacy files ? or is there somthing more fundametally wrong with =
my=20
setup ? do you have iostream.h located somewhere else ?
Just so I don't waste anybodys time, the problem only arises when I =
used the
latest version with Mingw/GCC 3.2 - with Mingw/GCC 2.95.3 everything =
works=20
fine.
Martin
_________________________________________________________________
Find din ferie p=E5 MSN Rejser http://www.msn.dk/rejser
<http://www.msn.dk/rejser>=20
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf <http://thinkgeek.com/sf>=20
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
<mailto:Dev...@li...>=20
TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
<http://www.noicys.cjb.net/devcpp/ub.htm>=20
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20
=09
|