B
Brian
Greetings:
I am trying to compile the following code via command line.
It compiles just fine in visual studio 2002 v7 so i took looked at the
properties and i
got the following command line options, but when i try to compile i
get the errors listed
below. Can anyone give me a suggestion on how to compile this program?
#include <iostream>
using namespace std;
int main() {
cout << "Hello World" << endl;
return 0;
}
cl /nologo /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Gm
/EHsc /RTC1 /MLd
/Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /nologo /c /Wp64 /ZI /TP
example.cpp
c:\Program Files\Microsoft Visual Studio
..NET\Vc7\include\xstring(1286) : warnin
g C4346: 'std::basic_string<_Elem,_Traits,_Ax>::size_type' : dependent
name is n
ot a type
prefix with 'typename' to indicate a type
c:\Program Files\Microsoft Visual Studio
..NET\Vc7\include\xstring(1286) : error
C2143: syntax error : missing ';' before
'std::basic_string<_Elem,_Traits,_Ax>::
npos'
c:\Program Files\Microsoft Visual Studio
..NET\Vc7\include\xstring(1286) : error
C2501: 'std::basic_string<_Elem,_Traits,_Ax>::size_type' : missing
storage-class
or type specifiers
c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\typeinfo.h(53) :
error C2989: 'type_info' : template class has already been defined as
a non-temp
late class
predefined C++ types (compiler internal)(96) : see declaration
of 'type_
info'
c:\Program Files\Microsoft Visual Studio
..NET\Vc7\include\xlocinfo.h(48) : error
C2143: syntax error : missing ';' before 'identifier'
c:\Program Files\Microsoft Visual Studio
..NET\Vc7\include\xlocinfo.h(48) : warni
ng C4091: 'typedef ' : ignored on left of '_Collvec' when no variable
is declare
d
c:\Program Files\Microsoft Visual Studio
..NET\Vc7\include\xlocinfo.h(48) : fatal
error C1004: unexpected end of file found
thanks,
brian
I am trying to compile the following code via command line.
It compiles just fine in visual studio 2002 v7 so i took looked at the
properties and i
got the following command line options, but when i try to compile i
get the errors listed
below. Can anyone give me a suggestion on how to compile this program?
#include <iostream>
using namespace std;
int main() {
cout << "Hello World" << endl;
return 0;
}
cl /nologo /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Gm
/EHsc /RTC1 /MLd
/Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /nologo /c /Wp64 /ZI /TP
example.cpp
c:\Program Files\Microsoft Visual Studio
..NET\Vc7\include\xstring(1286) : warnin
g C4346: 'std::basic_string<_Elem,_Traits,_Ax>::size_type' : dependent
name is n
ot a type
prefix with 'typename' to indicate a type
c:\Program Files\Microsoft Visual Studio
..NET\Vc7\include\xstring(1286) : error
C2143: syntax error : missing ';' before
'std::basic_string<_Elem,_Traits,_Ax>::
npos'
c:\Program Files\Microsoft Visual Studio
..NET\Vc7\include\xstring(1286) : error
C2501: 'std::basic_string<_Elem,_Traits,_Ax>::size_type' : missing
storage-class
or type specifiers
c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\typeinfo.h(53) :
error C2989: 'type_info' : template class has already been defined as
a non-temp
late class
predefined C++ types (compiler internal)(96) : see declaration
of 'type_
info'
c:\Program Files\Microsoft Visual Studio
..NET\Vc7\include\xlocinfo.h(48) : error
C2143: syntax error : missing ';' before 'identifier'
c:\Program Files\Microsoft Visual Studio
..NET\Vc7\include\xlocinfo.h(48) : warni
ng C4091: 'typedef ' : ignored on left of '_Collvec' when no variable
is declare
d
c:\Program Files\Microsoft Visual Studio
..NET\Vc7\include\xlocinfo.h(48) : fatal
error C1004: unexpected end of file found
thanks,
brian