cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: static library for windows

From: Charles <sanders-consulting_at_attbi.com>
Date: Wed, 6 Jan 1999 13:17:18 -0600

Use the command line and 'cd curl-7.10.3\lib'

nmake -f Makefile.vc6 CFG=

it will give you a list of options on how to build.

Cheers,
Charles

----- Original Message -----
From: "Luther Baker" <myc3p0_at_yahoo.com>
To: <curl-library_at_lists.sourceforge.net>
Sent: Thursday, February 20, 2003 2:20 AM
Subject: static library for windows

> Hi,
>
> I just downloaded Curl and its working fine ...
>
> Now, I'd like to build an executable that does NOT
> need to link to the Curl dll. IE, I want to run this
> executable on reasonably - any PC at work.
>
> From a Windows standpoint, I believe I need to build
> the curl library as a static library - and my
> executable can be built the same way. But for some
> reason (visual studio 7.0), when I build the default
> project, I get a libcurl.lib and libcurl.dll just
> fine. But, when I switch one parameter and say
> "Project Defaults >> Configuration Type = Static
> Library (.lib)" instead of the original "Dynamic
> Library (.dll)" the only thing that shows up in my
> output directory are the object files. No libs at all.
>
> Now, that wouldn't be the end of the world, if I knew
> how to tell Visual Studio how to use find and link to
> object files - but I'm having a hard time with that.
>
> Suggestions? Microsoft documentation is really
> ridiculous to look through and answer basic questions
> like - HOW TO generate a static library ... or HOW TO
> statically link to object files.
>
> I believe "gcc -static `curl-config ...`" will do the
> trick for my linux box ... but haven't tried it yet
> ...
>
> Thanks in advance.
>
> -Luther
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
> The most comprehensive and flexible code editor you can use.
> Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
> www.slickedit.com/sourceforge
>

-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
Received on 2003-02-20