Results 1 to 1 of 1
hi all scholars,
i have this Makefile..
CC=gcc
CFLAGS=-g -Wall -O -I $(CHIMERA_ROOT)/include/ -DEMULAB
LIBDIRS=$(CHIMERA_ROOT)/src/
LIBS=-lm -lchimera -lpthread -lcrypto
OBJS = gateway.o \
gateway_chimera.o gateway_udp.o \
gateway_openvpn.o gateway_tuntap.o \
hashtable.o ...
- 06-19-2007 #1Just Joined!
- Join Date
- Jun 2007
- Posts
- 1
problem with linking
hi all scholars,
i have this Makefile..
CC=gcc
CFLAGS=-g -Wall -O -I $(CHIMERA_ROOT)/include/ -DEMULAB
LIBDIRS=$(CHIMERA_ROOT)/src/
LIBS=-lm -lchimera -lpthread -lcrypto
OBJS = gateway.o \
gateway_chimera.o gateway_udp.o \
gateway_openvpn.o gateway_tuntap.o \
hashtable.o hashtable_itr.o
all: gateway
gateway: $(OBJS) $(CHIMERA_ROOT)libchimera.a
$(CC) $(CFLAGS) -L $(LIBDIRS) -o $@ $(OBJS) $(LIBS)
clean:
rm -f *.o *~ gateway
i have the libchimera.a file in my local directory
so when i run make it shows following
gcc -g -Wall -O -I /include/ -DEMULAB -L /src/ -o gateway gateway.o gateway_chimera.o gateway_udp.o gateway_openvpn.o gateway_tuntap.o hashtable.o hashtable_itr.o -lm -lchimera -lpthread -lcrypto
/usr/bin/ld: cannot find -lchimera
collect2: ld returned 1 exit status
where is tha mistake. Please help.
Thanks a lot in advance.


Reply With Quote
