I am very new to openssl and other Open Source stuff. Successfully compiled openssl using GNU C (Mingw32) on Win2k Prof. When I try to compile /demo/bio, I get about 100 lines of "Undefined Reference" error. First 5 lines are:
 
*****************************************************************
libcrypto.a(bss_acpt.o)(.text+0xb8):bss_acpt.c: undefined reference to `closesocket@4'
libcrypto.a(bss_acpt.o)(.text+0x1fc):bss_acpt.c: undefined reference to `closesocket@4'
libcrypto.a(bss_acpt.o)(.text+0x48a):bss_acpt.c: undefined reference to `shutdown@8'
libcrypto.a(bss_acpt.o)(.text+0x495):bss_acpt.c: undefined reference to `closesocket@4'
libcrypto.a(bss_acpt.o)(.text+0x7cc):bss_acpt.c: undefined reference to `shutdown@8'
*****************************************************************
 
Tired of path problems, I put all header files and libssl.a & libcrypto.a in the same /demo/bio folder.
 
The make file is:
 
***************************************************************
CC=gcc
CFLAG=
PLATFORM=Mingw32
EXAMPLES=saccept sconnect
 
all: $(EXAMPLES)
 
saccept: saccept.o
 $(CC) -o saccept saccept.o libssl.a libcrypto.a
 
sconnect: sconnect.o
 $(CC) -o sconnect sconnect.o libssl.a libcrypto.a
 
clean: 
 rm -f $(EXAMPLES) *.o
**************************************************************
Any suggestion please.
 
Robert

Reply via email to