Boost logo

Boost Users :

From: Matt Hurd (matt.hurd_at_[hidden])
Date: 2005-12-05 22:25:10


> 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).

A bit OT (ok a lot), but look at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang/html/_PREDIR_comment.asp

you add something like

   #pragma comment( lib, "my_lil_ol_do_dad" )

to a header and bob's your aunty.

Add a pinch of macro #ifdef magic for determining which lib for which
configuration, brew for a bit and you're done.

matt.


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