|
From: William Mc C. <WIL...@ms...> - 2004-10-04 13:13:53
|
Good Morning:
DEV is an IDE not a compiler.=20
I suggest you use the Microsoft compiler, and quit bugging =
everyone.
If this is in a foreign language, Learn it.
----- Original Message -----=20
From: Peter Boehm<mailto:pb...@hg...>=20
To: =
dev...@li...<mailto:dev...@li...=
e.net>=20
Sent: Monday, October 04, 2004 3:50 AM
Subject: Re: [Dev-C++] Question about C++
> Thanks for your reply. But the problem is there is a
> lot of code in the library I am using. It compiles
> using Microsoft based compilers. Let alone an error
> there is not even a single warning that is displayed
> while compiling using Microsoft based compilers.
>
Non const references can only bind to lvalues. A temporary is an =
rvalue.
Using code in this way requires a compiler that works the way you
expect. Or in other words: that code is not portable. As pointed out =
in
the postings this concerns non constant references to temporary =
objects.
Switch off MS specific language extensions on your MS-compiler (/Za).
What do you get now?
> I also tried compiling this code using an older
> version of GCC under Linux but there I got some other
> error.=20
>=20
gcc error messages may vary from version to version ;-)
Peter
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on =
ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give =
us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out =
more
=
http://productguide.itmanagersjournal.com/guidepromo.tmpl<http://productg=
uide.itmanagersjournal.com/guidepromo.tmpl>
_______________________________________________
Dev-cpp-users mailing list
=
Dev...@li...<mailto:Dev...@li...=
e.net>
TO UNSUBSCRIBE: =
http://www23.brinkster.com/noicys/devcpp/ub.htm<http://www23.brinkster.co=
m/noicys/devcpp/ub.htm>
=
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users<https://lists.=
sourceforge.net/lists/listinfo/dev-cpp-users>
|