c++gcclinkericc

Link to libraries built by GCC when I use ICC for my code


For a personal project on Linux, I would like to use ICC. My project uses Boost, Qt and several other libraries. These libraries are available on Ubuntu repository so I would like to save time by installing these prebuilt ones.

Is it possible for me to link dynamically my ICC-built executable with the libraries built by GCC?


Solution

  • Yeah, it's possible. It may not be the safest thing ever, and I wonder why you want to use ICC for a personal project, but it could be OK, and you can use tools like valgrind to help you detect issues at run time for extra peace of mind.