24 Aug
2004
24 Aug
'04
7:36 a.m.
MarC wrote:
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?
You haven't instructed the linker to link to the boost_filesystem library.
[marc@localhost ls]$ g++ simple_ls.cpp -o simple_ls
g++ simple_ls.cpp -o simple_ls -lboost_filesystem -- Stephen Jackson