3

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?

4

2 に答える 2

3

Boost.BCPツールを使用して、Boost のサブセットを抽出できます。

于 2012-11-22T07:29:28.073 に答える
2

libboost_regex-gcc-1_35.a コンパイルするオブジェクト ファイルのリストにスタティック ライブラリ を含めます。1_35 は私の Linux ボックスの古いバージョン番号です。新しいライブラリがある可能性があります。

于 2012-11-22T01:38:32.583 に答える