Good to hear :)<br>You could also link statically for example:<br><br>lib some_lib : some_source.cpp<link>static ;<br><br>Which could be simpler but would also extend you linking time if you plan to do big project.<br> <br>Regards<br><br><br><div class="gmail_quote">W dniu 30 stycznia 2012 11:34 u�ytkownik Karsten Ahnert <span dir="ltr"><<a href="mailto:karsten.ahnert@ambrosys.de">karsten.ahnert@ambrosys.de</a>></span> napisa�:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ok, thank you! That solved the problem. I only had to use _WIN32 in #ifdef.<br> <br> There is also a boost preprocessor symbol for this declaration:<br> BOOST_SYMBOL_EXPORT.<br> <div class="im"><br> <br> <br> <br> <br> <br> On 01/30/2012 10:31 AM, Jaros�aw Bober wrote:<br> > Ahh sorry I didn't looked at your project before and assumed that you<br> > have problem with boost itself. Yes, those flags are only for boost libs.<br> ><br> > What you're trying to do is to make shared libs (this is the default<br> > behaviour of boost-build), in linux it works out of the box.<br> > In Windows however you have to declare export symbols with something<br> > like this:<br> ><br> > __declspec(dllexport) void tree_func( int a );<br> ><br> > To support multiplatform you can do something like this:<br> ><br> > #ifdef WIN32<br> > #define EXPORTED __declspec(dllexport)<br> > #else<br> > #define EXPORTED<br> > #endif<br> ><br> > and then have your declaration:<br> ><br> > EXPORTED void tree_func( int a );<br> ><br> > Regards<br> ><br> > 2012/1/30 Karsten Ahnert <<a href="mailto:karsten.ahnert@ambrosys.de">karsten.ahnert@ambrosys.de</a><br> </div>> <mailto:<a href="mailto:karsten.ahnert@ambrosys.de">karsten.ahnert@ambrosys.de</a>>><br> <div class="im">><br> > � � Ok, I also tried this. It does not work. I thought that<br> > � � BOOST_ALL_NO_LIBS is only for the boost libraries (filesystem,<br> > � � program_option, etc..).<br> ><br> > � � Am 30.01.2012 09:43, schrieb Jaros�aw Bober:<br> >> � � The flag I was talking about is BOOST_ALL_NO_LIB not<br> >> � � BOOST_ALL_NO_LIBS.<br> >> � � You are right that this flags controll automatic linking. So when<br> >> � � you do it manually, you're linking to shared libraries (unless<br> >> � � you're directly linking to static version).<br> >> � � But automatic linking wants static if you haven't declared<br> >> � � BOOST_ALL_DYN_LINK somewhere.<br> >> � � I had the same problem. Try this in jamroot:<br> >><br> >> � � project :<br> >> � � � � requirements<br> >> � � � � <define>BOOST_ALL_NO_LIB<br> >> � � ;<br> >><br> >> � � Hope this helps.<br> >><br> >> � � 2012/1/30 Karsten Ahnert <<a href="mailto:karsten.ahnert@ambrosys.de">karsten.ahnert@ambrosys.de</a><br> </div>>> � � <mailto:<a href="mailto:karsten.ahnert@ambrosys.de">karsten.ahnert@ambrosys.de</a>>><br> <div class="im">>><br> >> � � � � I defined BOOST_ALL_NO_LIBS=1, but the problem is still the<br> >> � � � � same. I think BOOST_ALL_NO_LIBS controlls automatic linking of<br> >> � � � � the boost libraries. Any other ideas?<br> >><br> >> � � � � Am 30.01.2012 09:05, schrieb Jaros�aw Bober:<br> >>> � � � � >From first sight it looks like you have automatic linking<br> >>> � � � � turned on. This thing works only on windows, that's why<br> >>> � � � � you're fine on linux.<br> >>> � � � � Perhaps you should turn this off by defining flag<br> >>> � � � � BOOST_ALL_NO_LIB.<br> >>><br> >>> � � � � Regards<br> >>><br> >>> � � � � 2012/1/28 Dr. Karsten Ahnert <<a href="mailto:karsten.ahnert@ambrosys.de">karsten.ahnert@ambrosys.de</a><br> </div>>>> � � � � <mailto:<a href="mailto:karsten.ahnert@ambrosys.de">karsten.ahnert@ambrosys.de</a>>><br> <div><div></div><div class="h5">>>><br> >>> � � � � � � Hi,<br> >>><br> >>> � � � � � � I have a a project with several dynamic libraries and<br> >>> � � � � � � some applications. Some of these libraries depend on<br> >>> � � � � � � other libraries.<br> >>><br> >>> � � � � � � In the Jamroot I created aliases to all libraries and in<br> >>> � � � � � � the Jamfiles for the single library I include all depend<br> >>> � � � � � � libraries via these aliases. This works fine on linux<br> >>> � � � � � � (boost 1.48) but does not work on Windows machines. The<br> >>> � � � � � � problem is that bjam tries to find the static versions of<br> >>> � � � � � � the depended libraries which have not been build:<br> >>><br> >>> � � � � � � LINK : fatal error LNK1181: cannot open input file '*.lib'<br> >>><br> >>> � � � � � � I attached a small self contained example. Any ideas how<br> >>> � � � � � � I can fix this?<br> >>><br> >>> � � � � � � Thank you,<br> >>><br> >>> � � � � � � Karsten<br> _______________________________________________<br> Unsubscribe & other changes: <a href="http://lists.boost.org/mailman/listinfo.cgi/boost-build" target="_blank">http://lists.boost.org/mailman/listinfo.cgi/boost-build</a><br> </div></div></blockquote></div><br>