cURL / Mailing Lists / curl-library / Single Mail


Static linking is broken! Or is it?

From: Klemen Ferjančič <>
Date: Mon, 02 Mar 2015 19:47:53 +0100


When running cmake with static flag on Windows there is a terrifying
message on the end of the build:

Cmake command:
cmake -G "Visual Studio 12" -B./build -H./ -DCURL_STATICLIB=ON

CMake Warning at CMakeLists.txt:1098 (message):
   Static linking is broken!

But static linking seems to work just fine. The comment in
CMakeLists.txt didn't tell me much either.

Is there anything actually wrong with static linking? Should we not use it?
List admin:
Received on 2015-03-02