Boost logo

Boost Users :

From: Stephen Jackson (stephen.jackson_at_[hidden])
Date: 2004-08-24 02:36:08

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_at_localhost ls]$ g++ simple_ls.cpp -o simple_ls

g++ simple_ls.cpp -o simple_ls -lboost_filesystem

Stephen Jackson

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at