cURL / Mailing Lists / curl-library / Single Mail


Problems with fopen.c example

From: Nick Humfrey <>
Date: Wed, 22 Jan 2003 17:10:56 +0000


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.




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

        rm -f fopen fopen.o

This 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.
Received on 2003-01-22