MarC
I suppose, it's a begginer's linux problem but I didn't found the answer neither in the documentation nor in the internet forums...
After installing boost on my system (see how at the end of this email), I wanted to compile simple_ls.cpp, the filesystem example. everything works when creating the .o but when linking a lot of undefined references arised. What have I done wrong?
g++ -c simple_ls.cpp [marc@localhost ls]$ g++ -c simple_ls.cpp [marc@localhost ls]$ ls ls/ simple_ls.cpp* simple_ls.o [marc@localhost ls]$ g++ simple simple_ls.cpp simple_ls.o [marc@localhost ls]$ g++ simple_ls.cpp -o simple_ls
You need to link with the filesystem library that got built when you installed boost. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com