aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-09-08 23:23:19 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-09-08 23:23:19 +0200
commit6ce76e6996760be6780c1d99bc8d9d2916861d0a (patch)
tree2269e9ecdf5ae735c8ec6602ef85912a71d43281 /docs
parent64f12a3b9f5b967ec36808a20f3366a573f6c391 (diff)
FAQ: CURL_STATICLIB for visual studio users
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
Diffstat (limited to 'docs')
-rw-r--r--docs/FAQ13
1 files changed, 8 insertions, 5 deletions
diff --git a/docs/FAQ b/docs/FAQ
index 71a6bfe85..e2827a8dd 100644
--- 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.
-----------------------------------------------------------