Skip to content
Advertisement

Trying to use Boost 1.69.0 from CLION while Visual Studio works, but giving weird MINGW errors

Visual Studio is aweomse. It works, but I like using CLION and has no debug feature, so I try to use MINGW, but I get this weird undefined reference errors.

My CMakeLists.txt:

JavaScript

So now from this part it builds and works with Visual Studio, but given I try to debug with CLION, I try to use with MingW (besides I tried CYGWIN as well, but getting the exact error!!!!).

So this is the error:

JavaScript

Given I use both Visual Studio and GCC, it is a little bit different, because it uses cmake:

JavaScript

Advertisement

Answer

Ok, many guys help me to fix this. And it is true, but for someone that trying to compile for Visual Studio at once with CLion and cmake-js and Electron, the solution was that, because Visual Studio find out by itself, for MinGW you have to set the linked libraries (besides if you are in Windows or Linux):

JavaScript
Advertisement