]> granicus.if.org Git - curl/commitdiff
FAQ: CURL_STATICLIB for visual studio users
authorDaniel Stenberg <daniel@haxx.se>
Wed, 8 Sep 2010 21:23:19 +0000 (23:23 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 8 Sep 2010 21:23:19 +0000 (23:23 +0200)
Clarified as it isn't used with a -D option for them.

Reported by: Artfunkel
Bug: http://curl.haxx.se/bug/view.cgi?id=3060381

docs/FAQ

index 71a6bfe8566c3bafa9b616b2578af5a25b795171..e2827a8dd3d0de6f3876406eb613eb9c98ca7964 100644 (file)
--- a/docs/FAQ
+++ b/docs/FAQ
@@ -1106,11 +1106,14 @@ FAQ
 
   When building an application that uses the static libcurl library, you must
   add -DCURL_STATICLIB to your CFLAGS. Otherwise the linker will look for
-  dynamic import symbols. If you get linker error like "unknown symbol
-  __imp__curl_easy_init ..." you have linked against the wrong (static)
-  library.  If you want to use the libcurl.dll and import lib, you don't need
-  any extra CFLAGS, but use one of the import libraries below. These are the
-  libraries produced by the various lib/Makefile.* files:
+  dynamic import symbols. If you're using Visual Studio, you need to instead
+  add CURL_STATICLIB in the "Preprocessor Definitions" section.
+
+  If you get linker error like "unknown symbol __imp__curl_easy_init ..." you
+  have linked against the wrong (static) library.  If you want to use the
+  libcurl.dll and import lib, you don't need any extra CFLAGS, but use one of
+  the import libraries below. These are the libraries produced by the various
+  lib/Makefile.* files:
 
   Target:          static lib.   import lib for libcurl*.dll.
   -----------------------------------------------------------