Boost logo

Boost Users :

From: Vladimir Prus (yg-boost-users_at_[hidden])
Date: 2003-06-06 00:13:03


yg-boost-users_at_[hidden] wrote:

>
> I am also trying unsuccessfully to use the boost filesystem library.
> I am getting an undefined symbol error when attempting to link the
> example simple_ls.c program. I am also puzzled by the lack of .so
> libraries, but I can use only .a's if necessary.
[snip]
> I have been trying variations on this command line and been getting
> pretty much the same error:
>
> [code] rgristroph-austin| g++ -lboost_filesystem -o simple_ls
> [simple_ls.cpp
> /tmp/rgr/cckWE2oM.o: In function `main':
> /tmp/rgr/cckWE2oM.o(.text+0x19): undefined reference to

The command you gave fails to me, as well. However,

   g++ -o simple_ls simple_ls.cpp -lboost_filesystem

works. The order you specify libraries is important. Ain't it fun ;-)

- Volodya


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