我一直在拉我的頭髮,試圖找出如何用boost regex編譯我的應用程序。c/C++ boost - 編譯問題
我已經安裝了提升,從源頭在CentOS 5
g++ -lboost_regex -o my_app my_app.c $(mysql_config --libs --cflags)
它編譯沒有任何錯誤,但是當我執行它:
error while loading shared libraries: libboost_regex.so.1.46.1: cannot open shared object file: No such file or directory
該文件的位置是:
/usr/local/lib/libboost_regex.so.1.46.1
任何人都會遇到同樣的問題?
鑑於這是關於Boost,爲什麼C標籤和問題標題中的「C/C++」?不應該這是直C++? – 2011-03-24 16:43:48