kingrichard2005
kingrichard2005

Reputation: 7289

Adding Boost Library to a C++ project in Windows Eclipse

I recently installed the Boost Library on Windows using the installer, I'm trying to link to the library in Eclipse but am not having any luck. I tried going through Project Properties -> C/C++ Build -> Settings -> MinGW C++ Linker -> Libraries and add the reference "boost_filesystem" according to this website: http://www.ferdychristant.com/blog//archive/DOMM-76JN6N , but I think that only applies to Unix variants. Everytime I compile I get the error: "cannot find -lboost_filesystem" . I've scoured the net, but cannot find a way to properly use Boost in Eclipse under a Windows platform. Any help or suggestions are appreciated.

Upvotes: 2

Views: 11222

Answers (2)

Pedro Polonia
Pedro Polonia

Reputation: 1

Try to install the MinGW (GCC) Compiler Suite in c:\mingw. Eclipse will detect the toolchain, that includes the boost library.

Upvotes: 0

Related Questions