I want to debug SGI STL in g++ (version 4.1.2) I downloaded source code in http://www.sgi.com/tech/stl/download.html and put them in a directory,such as /stl and then g++ -I/stl m.cpp but it causes a lot of complie errs,why?
m.cpp
#include "list" //I want to include **/STL** not **/usr/include/c++/...**
using namespace std
int main()
{return 0;}
Thanks
I just want to debug SGI STL in g++,what should I do?Is this feasible???
Gcc looks here (subject to your exact setup)
But you can change that easily with
g++ -nostdinc -I/stl m.cpp
.The compiler errors are likely cause by the different built in code, but we can't tell without seeing them.