Re: Does Vector is not supported by VC++ 6.0??

From: Carl Muller (carlmuller_at_hotmail.com)
Date: 02/09/04


Date: 9 Feb 2004 03:30:15 -0800

ram_laxman@india.com (Ram Laxman) wrote in message news:<24812e22.0402080308.6024a6d2@posting.google.com>...
> I have used vector in the VC++ compiler. I have included
>
> #include <string>
> #include <algorithm>
> #include <vector>
>
> std::vector<int> field;
> std::vector <int>::size_type i;
>
>
> test.cpp(135) : error C2653: 'std' : is not a class or namespace name
> error C2143: syntax error : missing ';' before '<'
> error C2501: 'vector' : missing storage-class or type specifiers
> error C2143: syntax error : missing ';' before '<'
> error C2653: 'std' : is not a class or namespace name
>
>
> Does anybody know what is the problem??
>
> Regards
> Bubunia

Most likely you have an error in one of the header files or
declarations you are including before line 135 that you have omitted,
for example defining a class or an enum without putting a semicolon
after it.



Relevant Pages

  • Re: about header files
    ... > I wish to know whjat are all the header files used in c and their ... Header files contain declarations that are needed in the rest of the ...
    (comp.lang.c)
  • Re: Has thought been given given to a cleaned up C? Possibly called C+.
    ... Tidying up of C Language ... statements for example might expect the contents of header files ... These are C's famous convoluted inside-out declarations. ... I'm skeptical that such a scheme could actually coexist with the ...
    (comp.lang.c)
  • Re: New riddle
    ... is it possible to send me ur source code that gives u 16 answers? ... > The main problem here may be to assure that there are 5 houses, ... > sensible rearranging of declarations. ... > Best regards, Verena ...
    (comp.lang.prolog)
  • Re: Linker error multiple definitions
    ... > I declared the functions in separate header files ... But your compiler isn't complaining about multiple *declarations*. ...
    (comp.lang.c)
  • Re: Linker error - fooView.obj LNK2005: _IID_IProvideTaskPage already defined in fooDoc.obj
    ... declarations, one in the document and one in the view. ... multithreaded libraries would refer to symbols in the single-threaded and multithreaded ... Unless someone in the header files is ... Look for simple solutions first. ...
    (microsoft.public.vc.mfc)