title: Undefined symbol std::from_chars(...)
body: <p>When attempting to run a shared library I've built I am hitting the error when trying to load the shared library (within Linux) <code>undefined symbol: _ZSt10from_charsPKcS0_ReSt12chars_format</code>. Performing <code>nm --unmangle</code> shows that the lines that are causing an issue are:</p>
  <pre class="lang-cpp prettyprint-override"><code>U std::from_chars(char const*, char const*, double&amp;, std::chars_format)
  U std::from_chars(char const*, char const*, long double&amp;, std::chars_format)
  U std::from_chars(char const*, char const*, float&amp;, std::chars_format)
  </code></pre>
  <p>After trying to figure this out, as it is quite weird coming from the standard library, is that it is a known and common issue. Some similar threads are:</p>
  <ul>
  <li><a href="https://stackoverflow.com/questions/58923623/stdto-chars-compile-but-not-linking-on-macos-clang">std::to_chars compile but not linking on MacOS / clang</a></li>
  <li><a href="https://stackoverflow.com/questions/68669008/compile-error-when-calling-stdfrom-chars-with-a-double-in-libc">Compile error when calling std::from_chars with a double in libc++</a></li>
  </ul>
  <p>Looking at: <a href="https://en.cppreference.com/w/cpp/compiler_support" rel="nofollow noreferrer">https://en.cppreference.com/w/cpp/compiler_support</a> also confirms this with the line relating to this problem being: <code>P2291R3</code>.</p>
  <p>I think this is coming from the <code>libpqxx</code> library I have included as it is not in any of my code therefore, my question:</p>
  <p><em>Is there any method out there to deal with this?</em></p>
  <p>Could I create a definition for this just to overload it? Are this going to be implemented soon? Or do I have to only change the <code>libpqxx</code> library? At least the version.</p>
  <ul>
  <li>Linux: Ubuntu 20.04</li>
  <li>Compiler: G++-10</li>
  </ul>
  <h2>Update</h2>
  <p>From one of the comments below pointed out that:</p>
  <ol>
  <li>Was not looking at the wrong list</li>
  <li>Upgrading to the most up to date g++11 solved this issue</li>
  </ol>