How to add the options -static-libgcc and -static-libstdc++ to link the C and C++ standard libraries

Because i just made exe file and had to download these dll files online.. Is there a way i can reconfigure clion or fix this somehow?

2 comments
Comment actions Permalink

Hi Uros.

Please try to use set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")

0
Comment actions Permalink

ok, that worked.

0

Please sign in to leave a comment.