cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: trouble with libcurl on Windows

From: Peter Soxberger <Peter.Soxberger_at_gmx.net>
Date: Sun, 25 Jan 2009 11:19:03 +0100

All I want is to include libcurl into my project. I followed this list:

• In curllib project properties->Configuration Properties->C/C++->Code Generation->Runtime Library change the value to Multi-Threaded /MT [assuming a release build] so it correctly builds as a static library
• Then in the project you intend to use libcurl - in the preprocessor section, define CURL_STATICLIB and add the curl include directories
• In the linker section add curllib.lib, ws2_32.lib, winmm.lib

If I compile my projec, I get those errors:

1>curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol "__imp__ldap_msgfree" in Funktion "_Curl_ldap".
1>curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol "__imp__ldap_next_entry" in Funktion "_Curl_ldap".

What am I doing wrong?? Can someone please send me a step by step instruction how you included libcurl into your project?

Thanks for your help!

-------- Original-Nachricht --------
> Datum: Sat, 24 Jan 2009 19:35:25 +0100 (CET)
> Von: Daniel Stenberg <daniel_at_haxx.se>
> An: libcurl development <curl-library_at_cool.haxx.se>
> Betreff: Re: trouble with libcurl on Windows

> On Sat, 24 Jan 2009, Peter Soxberger wrote:
>
> > I have the same problem! Why is there no detailed and totally correct
> list
> > where all steps are descripted???
>
> All steps to do what?
>
> > It's really hard to implent curl into a project. I have never seen a lib
> > that was so difficult to implent! This should be improved!!
>
> That sounds like a good idea! I'm not a windows dev (in fact I've _never_
> developed anything even half-advanced on windows) so I have no idea what
> we
> need to do to enhace this for you guys. We rely on Windows users/devs to
> help
> out here!
>
>
> --
>
> / daniel.haxx.se
Received on 2009-01-25