|
Boost Users : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-08-24 02:46:42
MarC <mvinyes_at_[hidden]> writes:
> 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_at_localhost ls]$ g++ -c simple_ls.cpp
> [marc_at_localhost ls]$ ls
> ls/ simple_ls.cpp* simple_ls.o
> [marc_at_localhost ls]$ g++ simple
> simple_ls.cpp simple_ls.o
> [marc_at_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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net