cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl (perl) and windows

From: Cris Bailiff <c.bailiff+curl_at_awayweb.com>
Date: Tue, 5 Nov 2002 09:06:37 +1100

Nick,

On Sat, 2 Nov 2002 09:15 pm, lupusdacicus wrote:
> Is there anyone out there who has some experience with installing and using
> libcurl (perl interface) under windows ?

I have had success reports (and/or small tweaks) from a number of people. I've
never tried it myself.

> I am using the free Active state
> Perl, the Nmake compiler.

I'd be pretty sure Nmake isn't a compiler. Maybe you could be more specific?

> I modified Makefile.pl to look for the perl exe and it goes fine.
>
> When I do (n)make it says:
>
> cl -c -I -nologo -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
> -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
> -DPERL_MSVCRT_READFIX -O1 -MD -DNDEBUG -DVERSION=\"1.35\"
> -DXS_VERSION=\"1.35\" -IC:\Perl\lib\CORE -DHAVE_INTERNAL_VARS easy.c

You didn't say what you thought it should say. Whats wrong with this command?
Why is it a problem for you?

One thing you should be aware of (because you are using the pre-compiled
active state perl.exe) is that the Makefile generated from Makefile.PL will
attempt to use the same C compiler and compile options as were used to
compile the original perl binary. If you have a different compiler, or need
some different options, you'll have to provide them when you run Makefile.PL.

 perl Makefile.PL CC=cc

might do what you want, if, say, your compiler is called 'cc' instead of 'cl'.
Adjust as necessary. Also, I don't know what chances you take when mixing
compilers on your platform.

Cris

-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
Received on 2002-11-04