On 7/1/2014 4:14 PM, gkghkh...@aol.com wrote:
I don't understand why this library doesn't simply work out of the box. Does anybody else know the answer to my problem?


There is an error in the Windows build system as shipped. If you are using the "Makefile.vc" file to build the libraries, it does not assign the variable "RTLIBCFG" that is expected by "MakefileBuild.vc". Here is how I modified it:

C:\libcurl>svn diff -r 41 Makefile.vc
Index: Makefile.vc
===================================================================
--- Makefile.vc (revision 41)
+++ Makefile.vc (working copy)
@@ -190,6 +190,7 @@

        @SET CONFIG_NAME_LIB=$(CONFIG_NAME_LIB)
        @SET MACHINE=$(MACHINE)
+       @SET RTLIBCFG=$(MODE)
        @SET USE_IDN=$(USE_IDN)
        @SET USE_IPV6=$(USE_IPV6)
        @SET USE_SSPI=$(USE_SSPI)

If you don't do this (or otherwise coerce -DSTATIC_LIB during compilation), then the libraries will be built for dynamic linking and your code will not run unless it can find the dynamic libraries.

And yes, I should formally log this as a bug but I've been busy...

--
    David Chapman      dcchap...@acm.org
    Chapman Consulting -- San Jose, CA
    Software Development Done Right.
    www.chapman-consulting-sj.com

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to