I'm working on a project written in C++ that uses the Boost Regex library to do some parsing. My problem is, I need to run the program on a remote machine that doesn't have the boost library installed. I also don't have admin access to this computer so I can't just install it myself.

Is there any way to separate out just the Boost Regex library so that I can put it in the same directory as my other code? I tried doing this already by downloading the boost library and separating out all of the unneeded headers and such. I managed to get it to a point where it calmost compiled but it failed at the linking stage.

Is there anything I can do to fix this or will I be forced to rewrite the parsing code?

有帮助吗?

解决方案

You can use the Boost.BCP tool to extract a subset of Boost.

其他提示

include the static library libboost_regex-gcc-1_35.a your list of object files to compile. 1_35 is an older version number on my linux box, you may have a newer library

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top