GCC error with #include <vector>

Jhair Tocancipa Triana jhair_tocancipa at gmx.net
Sun Jan 22 21:12:43 UTC 2006


Philip Axer writes:

> Hi,
> I'm using gcc-Version 4.0.2 20050808 (prerelease) (Ubuntu
> 4.0.1-4ubuntu9) after including the std vector file I'm getting these
> compiler errors:

Supposing you are trying to include stl_vector.h directly, you should
not do it:

,----[ http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/stl__vector_8h-source.html ]
| 00056 /** @file stl_vector.h
| 00057  *  This is an internal header file, included by other library headers.
| 00058  *  You should not attempt to use it directly.
| 00059  */
`----

I don't get any of those errors when including the correct vector
header file:

jtocancipa at golem:~$ echo '
#include <vector>

int main () {return 0;}
' | g++ -xc++ -
jtocancipa at golem:~$ ./a.out 
jtocancipa at golem:~$ 

-- 
--Jhair

PGP key available from public servers - ID: 0xBAA600D0





More information about the ubuntu-users mailing list