F
Fab
Hi !
Please how to compile a program that uses an STL SGI extension like
slist or hash_map ?
For example, I'm unable to compile this example anymore :
http://www.sgi.com/tech/stl/Slist.html
I compiled it succesfully last year but I'm unable to remember
required #includes #define or namespace to use.
Moreover, the compiler on my linux has changed :
gcc version 4.2.3 20071123 (prerelease) (Debian 4.2.2-4)
Useful installed Debian packages are :
libstdc++6-4.2-dev
and
libstlport5.1-dev
the later owns :
/usr/include/stlport/slist
If I put these lines :
#include <stlport/slist>
#include <iostream>
using namespace std;
before the stl-manual example,
the compiler find "slist" include but not :
_stl/prolog.h
,
stl/_slist.h
and
stl/_epilog.h
that are included in stlport/slist.
Sure I've missed something huge : probably need to declare I want to
use SGI extension, but how ?
Thanks for any light.
Fabrice
Please how to compile a program that uses an STL SGI extension like
slist or hash_map ?
For example, I'm unable to compile this example anymore :
http://www.sgi.com/tech/stl/Slist.html
I compiled it succesfully last year but I'm unable to remember
required #includes #define or namespace to use.
Moreover, the compiler on my linux has changed :
gcc version 4.2.3 20071123 (prerelease) (Debian 4.2.2-4)
Useful installed Debian packages are :
libstdc++6-4.2-dev
and
libstlport5.1-dev
the later owns :
/usr/include/stlport/slist
If I put these lines :
#include <stlport/slist>
#include <iostream>
using namespace std;
before the stl-manual example,
the compiler find "slist" include but not :
_stl/prolog.h
,
stl/_slist.h
and
stl/_epilog.h
that are included in stlport/slist.
Sure I've missed something huge : probably need to declare I want to
use SGI extension, but how ?
Thanks for any light.
Fabrice