Thread: 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
|
|
From: Torsten C. <tc...@df...> - 2003-02-17 14:41:45
|
I just switched my application to unicode by specifying the "-D UNICODE" and "-D _UNICODE" compiler options. But the STL string class refused to accept that. Though it uses the "charT" type. Any pointers how to switch it to unicode? -- Torsten |
|
From: Ioannis V. <no...@ho...> - 2003-02-17 22:36:57
|
-------Original Message-------=0D =0D From: Torsten Curdt=0D Date: =C4=E5=F5=F4=DD=F1=E1, 17 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2003 4:= 42:55 =EC=EC=0D To: dev...@li...=0D Subject: [Dev-C++] unicode=0D =0D I just switched my application to unicode by specifying the=0D "-D UNICODE" and "-D _UNICODE" compiler options.=0D =0D But the STL string class refused to accept that. Though=0D it uses the "charT" type.=0D =0D Any pointers how to switch it to unicode?=0D =0D =0D =3D=3D> Try using wchar_t *built in* type which is also portable. And for= string use basic_string<wchar_t>.=0D =0D For example:=0D =0D // L in front converts a regular string to wchar_t.=0D basic_string<wchar_t> s=3DL"Something";=0D =0D =0D The string type is nothing else than:=0D =0D typedef basic_string<char> string;=0D =0D =0D For wide character sets, wchar_t is your type and where UNICODE is suppor= ted it usually is UNICODE.=0D =0D =0D Unfortunately (& strangely) i have the impression that MINGW does not provide wcout, so in this case you will have to use the C-subset wprintf(= ) in the style:=0D =0D wprintf(L"%s\n", s);=0D =0D =0D Try being as much portable as possible. In this way you will have fewer incompatibilities with other compilers or even next releases of your compiler.=0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 |
|
From: Ioannis V. <no...@ho...> - 2003-02-17 22:29:09
|
-------Original Message-------=0D =0D From: Lars-Bo Jacobsen=0D Date: =C4=E5=F5=F4=DD=F1=E1, 17 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2003 2:= 58:01 =EC=EC=0D To: 'Ioannis Vranos'; dev...@li...=0D Subject: SV: [Dev-C++] Cannot compile using Dev-C++ 5.0 beta 7 (4.9.7.0) = (10 MB) with Min=0D =0D Well that really does not help on the stated problem. I have the exact sa= me problem, I have developed a program with the gcc 2.95.3 version of Dev-Cp= p 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 tutori= al on wxWindows and everything works fine.=0D =0D 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 includ= es 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.=0D =0D 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 g= lad I am not the only one who experienced this problem hope someone not as newbies as I will have the insight to understand what=92s going on.=0D =0D =0D =3D=3D> It seems to me it is some system-dependent calls that cause the p= roblems and since it is fixed by using the files of a MINGW bits folder, then it= is a bug of Dev-C++ for not including that path? Whether it is of Dev-C++ or not, i suppose it can be fixed from inside Dev-C++ by adding that folder = to the Dev-C++ used path folders.=0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 |