Archived

This topic is now archived and is closed to further replies.

antareus

Using boost in my project

Recommended Posts

I want to use the signals library, and that requires building the CPP files and linking them in. How am I supposed to do this? Boost wants me to use a DLL...how stupid is that? I wanted to statically link to it, so I made a VC project and added all the CPP files in, then moved the lib file to the first project''s folder. It wouldn''t compile until I manually added the OBJ file references to the linker input options. Why is this? And what do people normally do when using a library in an open source project? Make people install it so they can edit your code? I''ve considered dropping boost for something more specific to what I''m doing, but writing a signals and slots library isn''t exactly fun.

Share this post


Link to post
Share on other sites
Is there a reason you don''t want to use a DLL? Just build it by using the jam scripts that come with boost and everything should work fine. If someone wants to use your code, they can either use your precompiled DLL or compile it themselves (say, for another OS). In general, all they need to do is to download Boost, and I don''t think that''s too much to expect.

Share this post


Link to post
Share on other sites
I just threw it in with the rest of the project for now. I don''t see why jam doesn''t support building static libraries though, its no more or less portable than DLLs are.

Share this post


Link to post
Share on other sites
Extra files for people to lose? Mismatched versions?

I''m still bitter about having to use a DLL instead of a static library because the static library leaves out symbols that are unused and there isn''t much you can do to include everything.

Share this post


Link to post
Share on other sites
When using LGPL libraries don''t you need to use a DLL _and_ link to it from the program so you don''t need to release your game engine source code?? I like DLL''s I don''t see what the problem is.

Share this post


Link to post
Share on other sites
quote:
Original post by deadalive
When using LGPL libraries don''t you need to use a DLL _and_ link to it from the program so you don''t need to release your game engine source code?? I like DLL''s I don''t see what the problem is.

Boost is LGPL?

Share this post


Link to post
Share on other sites