Including only the needed boost headers.
I am currently using the tokenizer library to do some simple log file processing. I am the only person on my team currently using the boost libraries. This code I wrote was originally just a utility for myself so I was able to get away with installing boost "only" on my PC. Now others on the team want to use my utility. Is there a way I can share this code with them without forcing them to install boost on there PCs? I am only using a very very small portion of the boost library so I think it would be overkill to make everyone install boost. Can I create a DLL or library to solve this? If this helps... I am running visual studio 2005. My project is not GUI based. Thanks
On Thu, Dec 10, 2009 at 7:01 AM, Al Gambardella
I am currently using the tokenizer library to do some simple log file processing. I am the only person on my team currently using the boost libraries. This code I wrote was originally just a utility for myself so I was able to get away with installing boost "only" on my PC. Now others on the team want to use my utility. Is there a way I can share this code with them without forcing them to install boost on there PCs? I am only using a very very small portion of the boost library so I think it would be overkill to make everyone install boost. Can I create a DLL or library to solve this? If this helps... I am running visual studio 2005. My project is not GUI based. Thanks
You can use the bcp tool in Boost to specify parts of boost that you want; it will extract those parts and anything those parts need to work, and you can include that part with your code.
Is there a way I can share this code with them without forcing them to install boost on there PCs? I am only using a very very small portion of the boost library so I think it would be overkill to make everyone install boost.
You could use bcp to extrac a subset of Boost: http://www.boost.org/doc/libs/1_41_0/tools/bcp/bcp.html
Can I create a DLL or library to solve this?
Sure, but you would need to hide all the Boost API's that you're using behind your own facade to avoid distributing the Boost headers. HTH, John.
On Thursday 10 December 2009 15:01, Al Gambardella wrote:
I am currently using the tokenizer library to do some simple log file processing. I am the only person on my team currently using the boost libraries. This code I wrote was originally just a utility for myself so I was able to get away with installing boost "only" on my PC. Now others on the team want to use my utility.
Is there a way I can share this code with them without forcing them to install boost on there PCs? I am only using a very very small portion of the boost library so I think it would be overkill to make everyone install boost.
Can I create a DLL or library to solve this?
If this helps... I am running visual studio 2005. My project is not GUI based.
Thanks
Hi! I'm not sure if I understand correctly, but if others only want to _run_ your utililty and not _edit_ it, you should be able to distribute it in compiled form. AFAIK tokenizer is a header only library and as such doesn't need anything external at runtime. Ben
participants (4)
-
Al Gambardella
-
Benjamin Sobotta
-
John Maddock
-
OvermindDL1