Re: 'vector' was not declared in this scope

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 22 April 2011 11:03, ales88 wrote:
>
> GCC says that in line 10 there's the error: 'vector' was not declared in this
> scope. An extract of the source code is the following:
>
> typedef struct {
>
> float etx, pf, pr;
> struct in_addr addr;
>
> }neigh;
>
> std::vector<neigh>neigh_list;   (here is line 10)
>
> Please somebody help me!!!!

This is not the right place to learn C++, but your problem seems to be
that you didn't include the <vector> header



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux