Note that there are some explanatory texts on larger screens.

plurals
  1. POBoostRegex - gcc - on AIX 5.3 Simple test gives multiple ld: 0711-224 WARNING
    primarykey
    data
    text
    <p>Boost 1.48 GCC 4.2.4 AIX 5.3 PowerPC</p> <p>I have a C app that I have been told to port to C++ and I now have a need to use regex. So since XMAS I have been learning C++ (And actually really loving it, not seen the wife in weeks tbh). So, I have to port an app over to AIX 5.3 using GCC. I am only using boost for the regex. I have a simple test example that compiles and runs fine, but when compiling I get these warnings. Can anyone advise on a) are they safe to ignore b)If not then what am I doing wrong c) Does anyone thing that strong coffee and late nights is a good plan for learning C++?</p> <p>Here is the example: #include #include </p> <pre><code>bool isPluginPresent(const std::string&amp; 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 &lt;iostream&gt; 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 &lt; 6; ++i) { cout &lt;&lt; "isPluginPresent " &lt;&lt; s[i] &lt;&lt; " returned " &lt;&lt; isPluginPresent(s[i]) &lt;&lt; endl; } return 0; } </code></pre> <p>Compiled with g++ -I /home/smurff/boost_1_48_0 -lpthreads example.cpp -o example /usr/local/lib/libboost_regex.a</p> <p>And the warnings are a whole bunch like this:</p> <p>ld: 0711-224 WARNING: Duplicate symbol: .non-virtual thunk to boost::exception_detail::error_info_injector::~error_info_injector()</p> <p>Thanks for your time Danny</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload