Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error while trying to compile a prog that uses file

Status
Not open for further replies.

somnath74

Technical User
Mar 5, 2002
24
0
0
IN
Hi friends,
While trying to compile a prog that uses a file to place data ,I am getting the following compilation error:-


C:\Vectors.cpp(26) : warning C4129: 'l' : unrecognized character escape sequence
C:\Vectors.cpp(33) : error C2872: 'cout' : ambiguous symbol
C:\Vectors.cpp(40) : error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class __SMANIP_long' (or there is no acceptable conversion)
C:\Vectors.cpp(41) : error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class __SMANIP_int' (or there is no acceptable conversion)
C:\Vectors.cpp(45) : error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class __SMANIP_long' (or there is no acceptable conversion)
C:\Vectors.cpp(56) : error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class __SMANIP_int' (or there is no acceptable conversion)
C:\Vectors.cpp(62) : error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class __SMANIP_int' (or there is no acceptable conversion)
Error executing cl.exe.

Vectors.obj - 6 error(s), 1 warning(s)



 
Sounds like you're missing the reference to a header file, like:

#include <iostream>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top