Topic: using stl iostreams with ANSI project setting
Author: agriffiths@ma.ccngroup.com (Alan Griffiths)
Date: 1998/03/18 Raw View
In article: <6emp12$2u7$1@news.iconz.co.nz> "Pat" <smartinp@iconz.co.nz> writes:
>
> Dear c++ ers.
>
> I am trying to use the iostream facility from the STL in conjunction with
> setting the ANSI keywords only project setting. On including iostream and
> compiling a unit (with no other code) I receive the compile time errors
> shown below. I would be most grateful if anyone on the group could shed any
> light on this problem for me.
Your C++ implementation is flawed. (I recognise these flaws as MSVC,
since I have to work with them too. TBF there is no ANSI standard for
C++, so the option is more applicable to C code.)
Essentially, if your select the "ANSI keywords only" option there is
very little of the supplied libraries that is usable. (So don't
select it!) There are similar problems if you turn all the diagnostic
messages on.
Contact your vendor and complain that they don't supply headers which
compile cleanly with their compiler.
__
Alan Griffiths | Senior Systems Consultant, Experian (Formerly CCN)
alan.griffiths@experian.com (agriffiths@ma.ccngroup.com, Tel. +44 115 934 4517)
(ACCU C++ SIG organiser | <http://www.accu.org/> alan@octopull.demon.co.uk)
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: Hyman Rosen <uunet!jyacc!hymie@ncar.UCAR.EDU>
Date: 1998/03/18 Raw View
"Pat" <smartinp@iconz.co.nz> writes:
> I am trying to use the iostream facility from the STL in conjunction with
> setting the ANSI keywords only project setting. On including iostream and
> compiling a unit (with no other code) I receive the compile time errors
> shown below. I would be most grateful if anyone on the group could shed any
> light on this problem for me.
>
>
> [C++Warning] stdlib.h(35): Non-ANSI keyword used: '__cdecl'.
> ...
Your compiler's implementation of STL uses non-ANSI keywords.
Clear now?
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: "Pat" <smartinp@iconz.co.nz>
Date: 1998/03/18 Raw View
Dear c++ ers.
I am trying to use the iostream facility from the STL in conjunction with
setting the ANSI keywords only project setting. On including iostream and
compiling a unit (with no other code) I receive the compile time errors
shown below. I would be most grateful if anyone on the group could shed any
light on this problem for me.
[C++Warning] stdlib.h(35): Non-ANSI keyword used: '__cdecl'.
[C++Warning] stdlib.h(36): Non-ANSI keyword used: '__cdecl'.
[C++Warning] stdlib.h(37): Non-ANSI keyword used: '__cdecl'.
[C++Warning] stdlib.h(38): Non-ANSI keyword used: '__cdecl'.
[C++Warning] stdlib.h(39): Non-ANSI keyword used: '__cdecl'.
[C++Warning] stdlib.h(40): Non-ANSI keyword used: '__cdecl'.
[C++Warning] stdlib.h(41): Non-ANSI keyword used: '__cdecl'.
[C++Error] iterator.h(766): Explicit specialization declarator "template<>"
now required.
[C++Error] iterator.h(768): Explicit specialization declarator "template<>"
now required.
[C++Warning] excpt.h(81): Non-ANSI keyword used: '__cdecl'.
[C++Error] winnt.h(241): , expected.
[C++Error] winnt.h(242): Multiple declaration for '__int64'.
[C++Error] winnt.h(241): Earlier declaration of '__int64'.
[C++Error] winnt.h(242): , expected.
[C++Error] winnt.h(254): , expected.
[C++Error] winnt.h(255): , expected.
[C++Warning] winnt.h(412): Non-ANSI keyword used: '__stdcall'.
[C++Warning] winnt.h(419): Non-ANSI keyword used: '__stdcall'.
[C++Warning] winnt.h(426): Non-ANSI keyword used: '__stdcall'.
[C++Warning] winnt.h(4842): Non-ANSI keyword used: '__stdcall'.
[C++Warning] windef.h(202): Non-ANSI keyword used: '__stdcall'.
[C++Warning] windef.h(203): Non-ANSI keyword used: '__stdcall'.
[C++Warning] windef.h(204): Non-ANSI keyword used: '__stdcall'.
[C++Warning] winbase.h(239): Non-ANSI keyword used: '__stdcall'.
[C++Warning] winbase.h(245): Non-ANSI keyword used: '__stdcall'.
[C++Error] winbase.h(995): Internal compiler error at 0x70a0c8 with base
0x890000.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]