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?

0

Hi Uros.

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

0
Avatar
Permanently deleted user

ok, that worked.

0

请先登录再写评论。