$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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