"Byrial Jensen" <bjensen@nospam.dk> wrote in message
news:<slrnapfl4s.114.bjensen@ask.ask>...
[8<8<8<]
> Man kan
> også typisk bede en oversætter om at se bort fra egne sprog-udvidelser
> og følge en bestemt standard mere strikt.
Teoretisk: ja.
Konkret i praksis med Microsoft Visual C++ V6.0: nej.
Microsoft Visual C++ V6.0 har en option "Disable Language extensions"
(kommando-linie option "/Za").
Hvis man slår den til og oversætter Hello world:
<code>
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
}
</code>
Får man:
<Compiler messages>
Deleting intermediate files and output files for project 'fnyt - Win32
Debug'.
--------------------Configuration: fnyt - Win32 Debug--------------------
Compiling...
fnyt.cpp
c:\program files\microsoft visual studio\vc98\include\utility(81) : error
C2146: syntax error : missing ';' before identifier 'iterator_category'
c:\program files\microsoft visual studio\vc98\include\utility(84) :
see reference to class template instantiation 'std::iterator_traits<_It>'
being compiled
c:\program files\microsoft visual studio\vc98\include\utility(81) : error
C2838: illegal qualified name in member declaration
c:\program files\microsoft visual studio\vc98\include\utility(84) :
see reference to class template instantiation 'std::iterator_traits<_It>'
being compiled
c:\program files\microsoft visual studio\vc98\include\utility(81) : error
C2501: 'iterator_category' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\utility(84) :
see reference to class template instantiation 'std::iterator_traits<_It>'
being compiled
c:\program files\microsoft visual studio\vc98\include\utility(82) : error
C2146: syntax error : missing ';' before identifier 'value_type'
c:\program files\microsoft visual studio\vc98\include\utility(84) :
see reference to class template instantiation 'std::iterator_traits<_It>'
being compiled
c:\program files\microsoft visual studio\vc98\include\utility(82) : error
C2838: illegal qualified name in member declaration
c:\program files\microsoft visual studio\vc98\include\utility(84) :
see reference to class template instantiation 'std::iterator_traits<_It>'
being compiled
c:\program files\microsoft visual studio\vc98\include\utility(82) : error
C2501: 'value_type' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\utility(84) :
see reference to class template instantiation 'std::iterator_traits<_It>'
being compiled
c:\program files\microsoft visual studio\vc98\include\utility(83) : error
C2146: syntax error : missing ';' before identifier 'distance_type'
c:\program files\microsoft visual studio\vc98\include\utility(84) :
see reference to class template instantiation 'std::iterator_traits<_It>'
being compiled
c:\program files\microsoft visual studio\vc98\include\utility(83) : error
C2838: illegal qualified name in member declaration
c:\program files\microsoft visual studio\vc98\include\utility(84) :
see reference to class template instantiation 'std::iterator_traits<_It>'
being compiled
c:\program files\microsoft visual studio\vc98\include\utility(83) : error
C2501: 'distance_type' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\utility(84) :
see reference to class template instantiation 'std::iterator_traits<_It>'
being compiled
c:\program files\microsoft visual studio\vc98\include\utility(226) : error
C2974: 'iterator' : invalid template argument for '_D', type expected
c:\program files\microsoft visual studio\vc98\include\utility(71) :
see declaration of 'iterator'
c:\program files\microsoft visual studio\vc98\include\utility(279) :
see reference to class template instantiation
'std::istreambuf_iterator<_E,_Tr>' being compiled
c:\program files\microsoft visual studio\vc98\include\utility(231) : error
C2146: syntax error : missing ';' before identifier 'int_type'
c:\program files\microsoft visual studio\vc98\include\utility(279) :
see reference to class template instantiation
'std::istreambuf_iterator<_E,_Tr>' being compiled
c:\program files\microsoft visual studio\vc98\include\utility(231) : error
C2838: illegal qualified name in member declaration
c:\program files\microsoft visual studio\vc98\include\utility(279) :
see reference to class template instantiation
'std::istreambuf_iterator<_E,_Tr>' being compiled
c:\program files\microsoft visual studio\vc98\include\utility(231) : error
C2501: 'int_type' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\utility(279) :
see reference to class template instantiation
'std::istreambuf_iterator<_E,_Tr>' being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(25) : error
C2146: syntax error : missing ';' before identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(25) : error
C2838: illegal qualified name in member declaration
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(25) : error
C2501: 'size_type' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(26) : error
C2146: syntax error : missing ';' before identifier 'difference_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(26) : error
C2838: illegal qualified name in member declaration
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(26) : error
C2501: 'difference_type' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(27) : error
C2146: syntax error : missing ';' before identifier 'pointer'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(27) : error
C2838: illegal qualified name in member declaration
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(27) : error
C2501: 'pointer' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(28) : error
C2146: syntax error : missing ';' before identifier 'const_pointer'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(28) : error
C2838: illegal qualified name in member declaration
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(28) : error
C2501: 'const_pointer' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(29) : error
C2146: syntax error : missing ';' before identifier 'reference'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(29) : error
C2838: illegal qualified name in member declaration
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(29) : error
C2501: 'reference' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(30) : error
C2146: syntax error : missing ';' before identifier 'const_reference'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(30) : error
C2838: illegal qualified name in member declaration
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(30) : error
C2501: 'const_reference' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(31) : error
C2146: syntax error : missing ';' before identifier 'value_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(31) : error
C2838: illegal qualified name in member declaration
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(31) : error
C2501: 'value_type' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(32) : error
C2146: syntax error : missing ';' before identifier 'iterator'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(32) : error
C2838: illegal qualified name in member declaration
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(32) : error
C2208: 'struct std::iterator' : no members defined using this type
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(33) : error
C2146: syntax error : missing ';' before identifier 'const_iterator'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(33) : error
C2838: illegal qualified name in member declaration
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(33) : error
C2501: 'const_iterator' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(34) : error
C2065: 'const_iterator' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(34) : error
C2065: 'value_type' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(35) : error
C2065: 'const_reference' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(35) : error
C2065: 'const_pointer' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(35) : error
C2065: 'difference_type' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(37) : error
C2955: 'iterator' : use of class template requires template argument list
c:\program files\microsoft visual studio\vc98\include\utility(71) :
see declaration of 'iterator'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(38) : error
C2065: 'reference' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(38) : error
C2065: 'pointer' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(45) : error
C2629: unexpected 'class std::basic_string<_E,_Tr,_A> ('
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(45) : error
C2334: unexpected token(s) preceding ':'; skipping apparent function body
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(48) : error
C2629: unexpected 'class std::basic_string<_E,_Tr,_A> ('
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(48) : error
C2334: unexpected token(s) preceding ':'; skipping apparent function body
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(53) : error
C2629: unexpected 'class std::basic_string<_E,_Tr,_A> ('
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(53) : error
C2334: unexpected token(s) preceding ':'; skipping apparent function body
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(55) : error
C2146: syntax error : missing ';' before identifier '_It'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(55) : error
C2501: '_It' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(56) : error
C2629: unexpected 'class std::basic_string<_E,_Tr,_A> ('
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(56) : error
C2334: unexpected token(s) preceding ':'; skipping apparent function body
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(63) : error
C2146: syntax error : missing ';' before identifier 'npos'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(63) : error
C2501: 'npos' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(78) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(79) : error
C2535: 'class std::basic_string<_E,_Tr,_A> &__thiscall
std::basic_string<_E,_Tr,_A>::append(const class
std::basic_string<_E,_Tr,_A> &)' : member function already defined or d
eclared
c:\program files\microsoft visual studio\vc98\include\xstring(76) :
see declaration of 'append'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(90) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(99) : error
C2535: 'class std::basic_string<_E,_Tr,_A> &__thiscall
std::basic_string<_E,_Tr,_A>::append(const _E *)' : member function already
defined or declared
c:\program files\microsoft visual studio\vc98\include\xstring(90) :
see declaration of 'append'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(100) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(108) : error
C2061: syntax error : identifier '_It'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(109) : error
C2535: 'class std::basic_string<_E,_Tr,_A> &__thiscall
std::basic_string<_E,_Tr,_A>::append(void)' : member function already
defined or declared
c:\program files\microsoft visual studio\vc98\include\xstring(100) :
see declaration of 'append'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(112) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(113) : error
C2535: 'class std::basic_string<_E,_Tr,_A> &__thiscall
std::basic_string<_E,_Tr,_A>::assign(const class
std::basic_string<_E,_Tr,_A> &)' : member function already defined or
declared
c:\program files\microsoft visual studio\vc98\include\xstring(110) :
see declaration of 'assign'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(132) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(138) : error
C2535: 'class std::basic_string<_E,_Tr,_A> &__thiscall
std::basic_string<_E,_Tr,_A>::assign(const _E *)' : member function already
defined or declared
c:\program files\microsoft visual studio\vc98\include\xstring(132) :
see declaration of 'assign'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(139) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(146) : error
C2061: syntax error : identifier '_It'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(147) : error
C2535: 'class std::basic_string<_E,_Tr,_A> &__thiscall
std::basic_string<_E,_Tr,_A>::assign(void)' : member function already
defined or declared
c:\program files\microsoft visual studio\vc98\include\xstring(139) :
see declaration of 'assign'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(148) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(150) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(152) : error
C2535: 'class std::basic_string<_E,_Tr,_A> &__thiscall
std::basic_string<_E,_Tr,_A>::insert(void)' : member function already
defined or declared
c:\program files\microsoft visual studio\vc98\include\xstring(148) :
see declaration of 'insert'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(164) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(165) : error
C2535: 'class std::basic_string<_E,_Tr,_A> &__thiscall
std::basic_string<_E,_Tr,_A>::insert(void)' : member function already
defined or declared
c:\program files\microsoft visual studio\vc98\include\xstring(148) :
see declaration of 'insert'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(175) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(176) : error
C2535: 'class std::basic_string<_E,_Tr,_A> &__thiscall
std::basic_string<_E,_Tr,_A>::insert(void)' : member function already
defined or declared
c:\program files\microsoft visual studio\vc98\include\xstring(148) :
see declaration of 'insert'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(177) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(178) : error
C2535: 'class std::basic_string<_E,_Tr,_A> &__thiscall
std::basic_string<_E,_Tr,_A>::insert(void)' : member function already
defined or declared
c:\program files\microsoft visual studio\vc98\include\xstring(148) :
see declaration of 'insert'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(192) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(195) : error
C2061: syntax error : identifier '_It'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(196) : error
C2535: 'void __thiscall std::basic_string<_E,_Tr,_A>::insert(struct
std::iterator)' : member function already defined or declared
c:\program files\microsoft visual studio\vc98\include\xstring(192) :
see declaration of 'insert'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(197) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(218) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(220) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(222) : error
C2535: 'class std::basic_string<_E,_Tr,_A> &__thiscall
std::basic_string<_E,_Tr,_A>::replace(void)' : member function already
defined or declared
c:\program files\microsoft visual studio\vc98\include\xstring(218) :
see declaration of 'replace'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(241) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(243) : error
C2535: 'class std::basic_string<_E,_Tr,_A> &__thiscall
std::basic_string<_E,_Tr,_A>::replace(void)' : member function already
defined or declared
c:\program files\microsoft visual studio\vc98\include\xstring(218) :
see declaration of 'replace'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(260) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(261) : error
C2535: 'class std::basic_string<_E,_Tr,_A> &__thiscall
std::basic_string<_E,_Tr,_A>::replace(void)' : member function already
defined or declared
c:\program files\microsoft visual studio\vc98\include\xstring(218) :
see declaration of 'replace'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(262) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(264) : error
C2535: 'class std::basic_string<_E,_Tr,_A> &__thiscall
std::basic_string<_E,_Tr,_A>::replace(void)' : member function already
defined or declared
c:\program files\microsoft visual studio\vc98\include\xstring(218) :
see declaration of 'replace'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(286) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(290) : error
C2535: 'class std::basic_string<_E,_Tr,_A> &__thiscall
std::basic_string<_E,_Tr,_A>::replace(struct std::iterator,struct
std::iterator,const _E *)' : member function already
defined or declared
c:\program files\microsoft visual studio\vc98\include\xstring(285) :
see declaration of 'replace'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(292) : error
C2061: syntax error : identifier 'size_type'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(296) : error
C2061: syntax error : identifier '_It'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(297) : error
C2535: 'class std::basic_string<_E,_Tr,_A> &__thiscall
std::basic_string<_E,_Tr,_A>::replace(struct std::iterator,struct
std::iterator)' : member function already defined or
declared
c:\program files\microsoft visual studio\vc98\include\xstring(292) :
see declaration of 'replace'
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
c:\program files\microsoft visual studio\vc98\include\xstring(297) : fatal
error C1003: error count exceeds 100; stopping compilation
c:\program files\microsoft visual studio\vc98\include\xstring(597) :
see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>'
being compiled
Error executing xicl6.exe.
fnyt.exe - 102 error(s), 0 warning(s)
</Compiler messages>
Hvis man tillader language extionsens med Microsoft Visual C++ V6.0 får man:
<Compiler messages>
--------------------Configuration: fnyt - Win32 Debug--------------------
Compiling...
fnyt.cpp
f:\cpp\fnyt\fnyt.cpp(8) : warning C4508: 'main' : function should return a
value; 'void' return type assumed
fnyt.obj - 0 error(s), 1 warning(s)
</Compiler messages>
Hvilket er en absolut misvisende warning i forhold til Standard C++.
Hvis man tilsvarende slår language extions fra med Microsoft Visual C++ .NET
(V7.0) får man:
<Compiler messages>
------ Build started: Project: fnyt, Configuration: Debug Win32 ------
Compiling...
fnyt.cpp
fnyt - 0 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 1 succeeded, 0 failed, 0 skipped
</Compiler messages>
Man kan lige så godt acceptere det:
Hvis man er interesseret i overholdelse af C++ Standarden er Microsoft
Visual C++ V6.0 langt fra state-of-art, og der findes langt bedre
alternativer.
Venlig hilsen
Mogens Hansen
|