cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: NO output whatsoever

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 22 Mar 2002 13:16:47 +0100 (MET)

On Fri, 22 Mar 2002 theexperts_at_allprodirect.com wrote:

[ As you've paid the ticket for the full libcurl safari tour, your guide for
the day advice you to walk on the libcurl mailing list path. This mail is
CC'ed there, please take pure libcurl issues on the libcurl list. ]

> I am just switching over to the C version of curl from the PHP version
> because I need to do multiple simultaneous transfers. My web host has
> libcurl for PHP but no support for the C version, so I had to install it on
> my account.
>
> Using curl for C I can't get the program to give me ANY output. I don't
> mean just curl output, I mean it won't even printf("Hello\n");
>
> There is something about calling curl_init that prevents output. If I
> comment-out the curl_init, it will printf hello.
>
> What's up with that? Maybe it's freezing on the init?
>
> I can't get any VERBOSE output either.

As you seem to have fallen into a snake pit already from step one, can you
please show us what your program looks like?

Can you compile and run any of the example source codes?

Is this libcurl 7.9.5 we're talking about?

There is no function named curl_init in the C interface!

> In case this means anything: when I ran the makefile, at one point a
> message scrolled up the screen about me not having the latest version of
> gunzip but at least I can... blah blah blah something.

gunzip? Which makefile told you that?

> The command line seems to work fine. I tried a basic curl
> http://www.mywebsite.com

...

> Everything compiles fine and I got the same output problem when I tried
> using a binary from the curl site.

The command line works fine you say, so what is "the same output problem"
with the binary from the curl site? You mean that the command line version
you built yourself works, while the downloaded one doesn't?

> Oh, also: why would curl-config --version be reporting version 7.9.3? Could
> that be because it's detecting the version my web host has installed?

$ which curl-config

I suspect that most of your problems here are due to version skews. How did
you install this in your home directory? with ./configure --prefix=$HOME ?
What's your path? How do you linke your program?

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-03-22