cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Unresolved external '_Curl_digest_cleanup' referenced from C:\.SRC\CURL-7.10.8\LIB\LIBCURL.LIB|url

From: James Clancy <jsclancy_at_yahoo.com>
Date: Tue, 25 Nov 2003 21:58:34 -0800 (PST)

I finally got this working. If anyone needs this to work on Borland
C++ 5.5.1, I'm including the corrected make files below.

If I made some kind of faux pas in the make files, you'll have to
forgive me. I'm just now trying to learn C and C++. I'm very new to
this.

I think the problem was that some of the *.c and *.obj files were left
out of the Makefile.b32 and the Makefile.b32.resp files respectfully.
(Do a diff against the originals if you want to see this difference.)
Also, I don't think the ws2_32.lib file was being linked into the final
build. Anyway, it seems to be working.

Next, I'm going to try to build with ssl. I know there are binaries
out there, but where's the fun in that?

==========================
lib directory Makefile.b32
==========================
############################################################
# $Id: Makefile.b32,v 1.9 2003/03/03 22:39:34 bagder Exp $
#
# Makefile.b32 - Borland's C++ Compiler 5.X
#
# 'lib' directory
#
# Requires 'Makefile.b32.resp'
#
# Written by Jaepil Kim, pit_at_paradise.net.nz
############################################################

# Setup environment
CXX = bcc32
RM = del
LIB = tlib
TOPDIR = ..
CURNTDIR = .
CXXFLAGS = -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl
-w-ngu -w-pro -tWM
DEFINES = -DLIBCURL_BIGENDIAN=0 -DNDEBUG -DWIN32 -DCONSOLE -DMBCS
INCDIRS = -I$(CURNTDIR);$(TOPDIR)\include\

# 'BCCDIR' has to be set up in your c:\autoexec.bat
# i.e. SET BCCDIR = c:\Borland\BCC55
# where c:\Borland\BCC55 is the compiler is installed
LINKLIB = $(BCCDIR)\lib\psdk\ws2_32.lib
LIBCURLLIB = libcurl.lib

.SUFFIXES: .c

SOURCES = \
        base64.c \
        md5.c \
        cookie.c \
        transfer.c \
        escape.c \
        formdata.c \
        ftp.c \
        http.c \
        http_chunks.c \
        http_digest.c \
        ldap.c \
        dict.c \
        telnet.c \
        getdate.c \
        getenv.c \
        getpass.c \
        hostip.c \
        if2ip.c \
        mprintf.c \
        netrc.c \
        progress.c \
        sendf.c \
        speedcheck.c \
        ssluse.c \
        timeval.c \
        url.c \
        file.c \
        getinfo.c \
        version.c \
        easy.c \
        strequal.c \
        strtok.c \
        connect.c \
        hash.c \
        share.c \
        llist.c \
        multi.c \
        content_encoding.c

OBJECTS = $(SOURCES:.c=.obj)

.c.obj:
        $(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $<

all: $(LIBCURLLIB)

clean:
        -$(RM) $(LIBCURLLIB)
        -$(RM) *.obj

$(LIBCURLLIB): $(LINKLIB) $(OBJECTS) Makefile.b32.resp
        -$(RM) $(LIBCURLLIB)
        $(LIB) $(LIBCURLLIB) @Makefile.b32.resp

===============================
lib directory Makefile.b32.resp
===============================
+base64.obj &
+md5.obj &
+cookie.obj &
+transfer.obj &
+escape.obj &
+formdata.obj &
+ftp.obj &
+http.obj &
+http_chunks.obj &
+http_digest.obj &
+ldap.obj &
+dict.obj &
+telnet.obj &
+getdate.obj &
+getenv.obj &
+getpass.obj &
+hostip.obj &
+if2ip.obj &
+mprintf.obj &
+netrc.obj &
+progress.obj &
+sendf.obj &
+speedcheck.obj &
+ssluse.obj &
+timeval.obj &
+url.obj &
+file.obj &
+getinfo.obj &
+version.obj &
+easy.obj &
+strequal.obj &
+strtok.obj &
+connect.obj &
+hash.obj &
+share.obj &
+llist.obj &
+multi.obj &
+content_encoding.obj

==========================
src directory Makefile.b32
==========================
############################################################
# $Id: Makefile.b32,v 1.2 2001/08/09 09:10:36 bagder Exp $
#
# Makefile.b32 - Borland's C++ Compiler 5.X
#
# 'src' directory
#
# Written by Jaepil Kim, pit_at_paradise.net.nz
############################################################

# Set program's name
PROGNAME = curl.exe

# Setup environment
CXX = bcc32
CXXFLAGS = -5 -O2 -WC -w-par -w-csu -w-aus
RM = del
TOPDIR = ..
DEFINES = -DNDEBUG -DLIBCURL_BIGENDIAN=0 -DWIN32 -D_CONSOLE -D_MBCS
LD = bcc32
LDFLAGS = -lap -e$(PROGNAME)
INCDIRS = -I$(TOPDIR)/include
LIBCURLLIB= $(TOPDIR)/lib/libcurl.lib

# 'BCCDIR' has to be set up in your c:\autoexec.bat
# i.e. SET BCCDIR = c:\Borland\BCC55
# where c:\Borland\BCC55 is the compiler is installed
LINKLIB = $(BCCDIR)\lib\psdk\wsock32.lib
LINKLIB2 = $(BCCDIR)\Lib\psdk\ws2_32.lib

PROGRAMS = \
        curl.exe

.c.obj:
        $(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $*.c

all: $(PROGRAMS)

curl.exe: $(LIBCURLLIB) $(LINKLIB) $(LINKLIB2) hugehelp.obj
writeout.obj urlglob.obj main.obj
        $(LD) $(LDFLAGS) hugehelp.obj writeout.obj urlglob.obj main.obj
$(LIBCURLLIB) $(LINKLIB) $(LINKLIB2)

clean:
        $(RM) *.obj
        $(RM) *.exe
        $(RM) *.tds

--- James Clancy <jsclancy_at_yahoo.com> wrote:
> I'm trying to compile curl-7.10.8 using Borland C++ 5.5.1 for Win32.
> I've managed to compile the libcurl.lib file, which comes in at
> 218,112
> bytes. (Is that about right?) Then, when I go to try and compile
> curl.exe, I get the errors listed below. Any idea what I may be
> doing
> wrong?
>
> Error: Unresolved external '_Curl_digest_cleanup' referenced from
> C:\.SRC\CURL-7.10.8\LIB\LIBCURL.LIB|url
> Error: Unresolved external '_Curl_output_digest' referenced from
> C:\.SRC\CURL-7.10.8\LIB\LIBCURL.LIB|http
> Error: Unresolved external '_Curl_input_digest' referenced from
> C:\.SRC\CURL-7.10.8\LIB\LIBCURL.LIB|http
> Error: Unresolved external 'WSACreateEvent' referenced from
> C:\.SRC\CURL-7.10.8\LIB\LIBCURL.LIB|telnet
> Error: Unresolved external 'WSAEventSelect' referenced from
> C:\.SRC\CURL-7.10.8\LIB\LIBCURL.LIB|telnet
> Error: Unresolved external 'WSAEnumNetworkEvents' referenced from
> C:\.SRC\CURL-7.10.8\LIB\LIBCURL.LIB|telnet
>
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
Received on 2003-11-26