升壓1.48 GCC 4.2.4 AIX 5.3的PowerPCBoostRegex - GCC - 在AIX 5.3簡單測試給出了多個LD:0711-224警告
我有我已經被告知移植到C++和C的應用我現在需要使用正則表達式。所以,自從XMAS我一直在學習C++(實際上真的很喜歡它,在tbh周沒有見過妻子)。所以,我必須使用GCC將應用程序移植到AIX 5.3。我只使用提升的正則表達式。我有一個簡單的測試例子,編譯和運行良好,但編譯時我得到這些警告。任何人都可以建議a)他們可以安全地忽視b)如果沒有,那麼我在做什麼錯c)有沒有人強烈的咖啡和深夜是一個學習C++的好計劃?
這裏是例如: 的#include 的#include
bool isPluginPresent(const std::string& s)
{
static const boost::regex e("^(Plugin|area-Hub-Plugin):\s*(.*arealdap.+)$", boost::regex::perl|boost::regex::icase);
return boost::regex_match(s, e);
}
#include <iostream>
using namespace std;
int main()
{
string s[6] = { "Pluuuugin: c:\\program files\\nextid.dll",
"Plugin: c:\\program files\\areahub.dll",
"AREA-Hub-Plugin: c:\\program files\\arealdap.so",
"AREA-Hub-Plugin: c:\\program files\\someother.so",
"Hello World: I really should go to bed",
"Plugin: c:\\program files\\arealdap.so",};
int i;
for(i = 0; i < 6; ++i)
{
cout << "isPluginPresent " << s[i] << " returned " << isPluginPresent(s[i]) << endl;
}
return 0;
}
與 克++ -I /家/ smurff/boost_1_48_0 -lpthreads example.cpp -o示例的/ usr /本地/ LIB/libboost_regex編譯.A
而且警告是一大堆這樣的:
LD:0711-224警告:重複的符號:。非虛擬的thunk提振:: exception_detail :: error_info_injector ::〜error_info_injec TOR()
感謝您的時間 丹尼
嗨DSIGN,感謝您的回答?好吧,我會忽略他們。順便說一句,妻子說,學習C++對我來說意味着比她更多......這樣的高維護......再次感謝 – smurff1975 2012-02-02 13:56:47