cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problems with fopen.c example

From: Nick Humfrey <njh_at_ecs.soton.ac.uk>
Date: Wed, 22 Jan 2003 17:10:56 +0000

Hi,

I can't get the fopen.c example to work.

It just tells me:
"We got: 0 bytes"

Tried re-configuring it to use local webservers as well but to no
avail. Any idea why it isn't giving an error message or any other
output ? Below is the Makefile I used.

I am using curl 7.10.3 on Mac OS X 10.2.3.

Cheers,

nick.

----------

CC = `curl-config --cc`
LDFLAGS = `curl-config --libs`
CFLAGS = `curl-config --cflags`

all: fopen

fopen.o: fopen.c
        $(CC) $(CFLAGS) -c -o fopen.o fopen.c

fopen: fopen.o
        $(CC) $(LDFLAGS) -o fopen fopen.o

clean:
        rm -f fopen fopen.o

-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
Received on 2003-01-22