<div dir="ltr">C++ code is not compatible between different compilers.  You cannot link C++ code built with GCC 4.9.3 with GCC 4.2.1.  Maybe if you hack around and find the GNU C++ libraries from your GCC 4.9.3 installation... just maybe, with enough hacking, it will work.  But in general, this is a rabbit hole that will offer you very little in the end.<div><br></div><div>The standard way to build on systems that don't have the compilers you need is... to get the compilers you need.  My point was that getting these compilers is actually not very hard.  In the end, that will almost certainly be the easiest solution to your problem.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 27, 2017 at 12:58 PM, Hendrik Sattler <span dir="ltr"><<a href="mailto:post@hendrik-sattler.de" target="_blank">post@hendrik-sattler.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Your answer is totally unrelated to the question.<br>
<div class="HOEnZb"><div class="h5"><br>
Am 27. Januar 2017 18:23:39 MEZ schrieb "Elizabeth A. Fischer" <<a href="mailto:elizabeth.fischer@columbia.edu">elizabeth.fischer@columbia.<wbr>edu</a>>:<br>
>Get spack, then use it to build GCC 4.9.3  takes a couple hours of wall<br>
>time, five minutes of your time.<br>
><br>
>Github.com/llnl/spack<br>
>On Jan 27, 2017 12:04 PM, "Michele Portolan" <<br>
><a href="mailto:michele.portolan@grenoble-inp.fr">michele.portolan@grenoble-<wbr>inp.fr</a>> wrote:<br>
><br>
>> I have a project that build correctly using gcc 4.9.3, generating a<br>
>> dynamic library that I can later link to obtain my executables. So,<br>
>nothing<br>
>> special.<br>
>><br>
>> My problem is that on one of my target systems, I only have a gcc<br>
>4.1.2<br>
>> and I am forced to use it for at least  linking the last executable.<br>
>My<br>
>> project uses extensively C++14,so I cannot build it with the older<br>
>gcc.<br>
>><br>
>> Is there a way to have Cmake generate a library that is compatible<br>
>with<br>
>> gcc 4.1.2?<br>
>><br>
>> Regards,<br>
>><br>
>><br>
>> Michele<br>
>> --<br>
>><br>
>> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
>><br>
>> Please keep messages on-topic and check the CMake FAQ at:<br>
>> <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br>
>><br>
>> Kitware offers various services to support the CMake community. For<br>
>more<br>
>> information on each offering, please visit:<br>
>><br>
>> CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br>
>> CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br>
>> CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
><a href="http://www.kitware.com/opensou" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensou</a><br>
>> rce/opensource.html<br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/cmake</a><br>
>><br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.<br>
</font></span></blockquote></div><br></div>