|
From: ni va <niv...@gm...> - 2011-03-31 19:26:34
|
Hi, I am trying to link serproxy 1.2.0 with mingw. I am using this makefile that I have updated from unix'makefile. # # File: Linux serproxy makefile # # (C)1999 Stefano Busti # VERSION = `cat VERSION` # NIVA ADD INC = \ C:/MinGW/msys/1.0/include SRCS = \ main.c sio.c sock.c thread.c vlist.c cfglib.c config.c string.c \ pipe.c error.c OBJS = \ main.o sio.o sock.o thread.o vlist.o cfglib.o config.o string.o \ pipe.c error.c CC = gcc ifdef DEBUG CFLAGS = -I$(INC) -Wall -g -D__UNIX__ -DDEBUG else # NIVA ADD CFLAGS = -I$(INC) -Wall -O2 # CFLAGS = -I$(INC) -Wall -O2 -fomit-frame-pointer -D__UNIX__ endif ifdef USE_EF LIBS= -lpthread -lefence else # NIVA ADD LIBS= -LC:/MinGW/msys/1.0/include -lpthread endif # Build the program serproxy: $(SRCS) $(OBJS) $(CC) $(CFLAGS) -o serproxy $(OBJS) $(LDFLAGS) $(LIBS) install: serproxy cp -f serproxy c:/temp clean: # NIVA UPDT del /F *.o realclean: # NIVA UPDT del /F *.o serproxy *.gz *.zip dep: makedepend -Y -- $(CFLAGS) -- $(SRCS) 2&>/dev/null # DO NOT DELETE main.o: sio.h sock.h pipe.h thread.h vlist.h cfglib.h config.h error.h sio.o: sio.h sock.o: sock.h thread.o: thread.h vlist.o: vlist.h cfglib.o: cfglib.h config.o: config.h cfglib.h string.h string.o: string.h pipe.o: pipe.h sio.h sock.h thread.h error.o: error.h Those errors'link are coming : gcc -IC:/MinGW/msys/1.0/include -Wall -O2 -o serproxy main.o sio.o sock.o thread.o vlist.o cfglib.o config.o string.o pipe.c error.c -LC:/MinGW/msys/1.0/include -lpthread || main.o:main.c:(.text+0x73): référence indéfinie vers « _impure_ptr » || main.o:main.c:(.text+0xe5): référence indéfinie vers « select@20 » || main.o:main.c:(.text+0x12d): référence indéfinie vers « __WSAFDIsSet@8 » || main.o:main.c:(.text+0x170): référence indéfinie vers « __WSAFDIsSet@8 » ... || main.o:main.c:(.text+0x268): référence indéfinie vers « _impure_ptr » ... || main.o:main.c:(.text+0x74b): référence indéfinie vers « select@20 » Can somebody help me to link this application please ? Thank you in advance Niva |