Boost logo

Boost-Build :

From: Phillip Seaver (phil_at_[hidden])
Date: 2007-11-18 23:37:26


Petrus B. van Bork wrote:
> ./main.o: In function `main':
> E:/workspaceCPP/BoostTest/Debug/../main.cpp:25: undefined reference to
> `boost::filesystem::native(std::string const&)'
>
>
> Well, there it is. I am not quite sure what to do - it is the demo code
> and I double checked that it had been cut-and-pasted into my IDE
> (Eclipse with CDT 4) correctly. Alas, I don't find the console output
> adequately enlightening, based on my own knowledge. Does anyone know
> what has gone wrong, after all this is demo code from Boost, and ought
> to work, one would think?
>
> Best,
>
> Petrus

That doesn't look like you're running boost-build -- I'm guessing (since
I've never used it) Eclipse. It looks like you're not linking against
the Filesystem library. Boost Filesystem is one of the libraries that
is not header-only:
http://boost.org/more/getting_started/windows.html#header-only-libraries
You may want to look at that whole page.

HTH,

Phillip


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk