If the target platform has an adapted gcc that does not match upstream gcc, or may not be possible to just compile a newer version. Or it is a discontinued arch.
Am 27. Januar 2017 19:05:09 MEZ schrieb "Elizabeth A. Fischer" <elizabeth.fisc...@columbia.edu>: >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. > >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. > > >On Fri, Jan 27, 2017 at 12:58 PM, Hendrik Sattler ><p...@hendrik-sattler.de> >wrote: > >> Your answer is totally unrelated to the question. >> >> Am 27. Januar 2017 18:23:39 MEZ schrieb "Elizabeth A. Fischer" < >> elizabeth.fisc...@columbia.edu>: >> >Get spack, then use it to build GCC 4.9.3 takes a couple hours of >wall >> >time, five minutes of your time. >> > >> >Github.com/llnl/spack >> >On Jan 27, 2017 12:04 PM, "Michele Portolan" < >> >michele.porto...@grenoble-inp.fr> wrote: >> > >> >> I have a project that build correctly using gcc 4.9.3, generating >a >> >> dynamic library that I can later link to obtain my executables. >So, >> >nothing >> >> special. >> >> >> >> My problem is that on one of my target systems, I only have a gcc >> >4.1.2 >> >> and I am forced to use it for at least linking the last >executable. >> >My >> >> project uses extensively C++14,so I cannot build it with the older >> >gcc. >> >> >> >> Is there a way to have Cmake generate a library that is compatible >> >with >> >> gcc 4.1.2? >> >> >> >> Regards, >> >> >> >> >> >> Michele >> >> -- >> >> >> >> Powered by www.kitware.com >> >> >> >> Please keep messages on-topic and check the CMake FAQ at: >> >> http://www.cmake.org/Wiki/CMake_FAQ >> >> >> >> Kitware offers various services to support the CMake community. >For >> >more >> >> information on each offering, please visit: >> >> >> >> CMake Support: http://cmake.org/cmake/help/support.html >> >> CMake Consulting: http://cmake.org/cmake/help/consulting.html >> >> CMake Training Courses: http://cmake.org/cmake/help/training.html >> >> >> >> Visit other Kitware open-source projects at >> >http://www.kitware.com/opensou >> >> rce/opensource.html >> >> >> >> Follow this link to subscribe/unsubscribe: >> >> http://public.kitware.com/mailman/listinfo/cmake >> >> >> >> -- >> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail >> gesendet. >> -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake