
Hi! I am making a static library (.a under Linux and .lib under Windows) and the functions of my library using the capabilities of boost::filesystem. My problem is that when I link my static library to my programs, the linker (I use the MSVC 2010EE on Windows), reports an error because it not find the static libraryof boost::filesystem!! I thought it was enough to link it to my static library.... What's wrong? -- View this message in context: http://boost.2283326.n4.nabble.com/BOOST-fylesystem-and-staic-library-tp3056... Sent from the Boost - Users mailing list archive at Nabble.com.

But, in general, how you can create a static library that "use" other library (boost::filesystem)? I wish that those who use my library should not even link to the boost:: filesystem. Is it possible? -- View this message in context: http://boost.2283326.n4.nabble.com/BOOST-fylesystem-and-staic-library-tp3056... Sent from the Boost - Users mailing list archive at Nabble.com.

Claude wrote:
But, in general, how you can create a static library that "use" other library (boost::filesystem)?
I wish that those who use my library should not even link to the boost:: filesystem.
Is it possible?
There is no linking during the process of creating a static library. A Static Library is effectively a collection of object code. You would have to link your code and boost into a "dynamic" library. Or I suppose you could use the librarian to merge your object code and boosts, although I've never tried this. Jeff
participants (2)
-
Claude
-
Jeff Flinn