<div class="gmail_quote">On Sun, Sep 20, 2009 at 9:33 PM, Alain Leblanc <span dir="ltr">&lt;<a href="mailto:aalebl@gmail.com">aalebl@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks for the reply. I&#39;m experienced with GCC, but just really<br>
starting with VC++, and I should probably spend more time learning it.<br>
<br>
I am using FindBoost and I know it  finds my boost installation ok<br>
otherwise cmake would fail. Since I sent my email, I noticed that my<br>
boost lib directory contained all the boost_XXX.lib files, but not the<br>
libboost_XXX.lib. Both versions of the files come with boost. So I<br>
installed them but still no luck. </blockquote><div><br>The libboost_* are static libraries.  You will need them if you want to
link against boost statically.  Also make sure your
Boost_USE_STATIC_LIBS is set accordingly before you call find_package()
(see FindBoost documentation).<br>
However if in the add_library() call<br></div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I used the STATIC option instead of SHARED then the library would<br>

build without problems.<br></blockquote><div><br>Static libraries often build just fine if they depend on other
libraries because linking is deferred until an executable is built.<br>

<br>

Shared libraries on MSVC require some preprocessor statements to work
properly to export functions/classes.  The following page might be
useful.<br>

<a href="http://www.itk.org/Wiki/BuildingWinDLL">http://www.itk.org/Wiki/BuildingWinDLL</a> 
<br></div></div><br clear="all"><br>-- <br>Philip Lowman<br>