Re: 'vector' was not declared in this scope

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

 



On 22 April 2011 22:38, ales88 wrote:
>
>
>
> Jonathan Wakely-4 wrote:
>>
>> On 22 April 2011 21:37, ales88 wrote:
>>>
>>>
>>> Yes, I've included <vector> header!
>>
>> Well then if you want anyone to be able to help you need to provide a
>> complete example that fails, not just an extract.
>>
>>
>
> THIS IS THE ENTIRE CODE:
>
> #include <vector>
> #include <sys/types.h>
> #include <netinet/in.h>
> #include <vector>
>
> int main() {
>
> int i=1;
>
> typedef struct {
>
> float etx, pf, pr;
> struct in_addr addr;
>
> }neigh;
>
> vector<neigh>neigh_list;  //HERE IS THE PROBLEM

This does not match your original extract. The problem here is you
haven't said std::vector.

If you want people to help then you need to show the actual code that
isn't working, not something similar but different.



[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