Boost logo

Boost Users :

From: Edward Diener (eddielee_at_[hidden])
Date: 2005-12-05 22:53:12


Chris Morley wrote:
> Hi, this is a how-is-it-done question rather than a problem. Ive learnt a
> lot about c++ from using boost, but this one I just cant work out. I
> installed boost and it dumped all the libraries in c\boost\lib.Now I am
> slightly confused how I'm able to simply reference a header file in
> c:\boost\include\blahblah yet I don't have to include the specific
> libraries... somehow its done for me?!
>
> This is using visual studio, and whenever I have built lib files I have to
> include the header file as usual, but also have to explicitly drag the lib
> file into the project (or under the required libraries in the linker tab).
>
> Any idea how this is done? Would love to be able to do this with my libs!

Look at the #pragma comment(lib,"SomeLib.lib") directive.


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