[libxml++] Makefile for sax_parser_build_dom



Hello, 
i have made some (simple) makefile for the example with the SAX API like
sax_parser, and now i would like to make one for the
sax_parser_build_dom and i have a strange error:
//here is my Makefile : 

CC = g++
NAME = test
LIBS	= -L/usr/lib -L/usr/local/lib -lpthread -lz -lm -lxml++-1.0 
OUTPUT   = ./
CFLAGS = -Wall -fno-inline --debug

INCLUDE = -I/usr/include/ -I/usr/include/libxml2  -I/.
-I/usr/include/libxml++-1.0/ -I./ -I/usr/X11R6/include 

OBJS := $(patsubst %.cc,%.o,$(wildcard *.cc))
H_OBJS := $(wildcard *.h)


$(NAME): main.o svgdocument.o svgelement.o
	$(CC)  -o $@ $(CFLAGS) \
	main.o svgelement.o svgdocument.o $(LIBS)

.cc.o:
$(OBJS): %.o : %.cc
	$(CC) $(INCLUDE) $(CFLAGS)  -c -o  $@ $<

# svgdocument.o: svgdocument.cc svgdocument.h 
# 	$(CC) $(CFLAGS) $(INCLUDE)   -c svgdocument.cc
# svgelement.o: svgelement.cc svgelement.h
# 	$(CC) $(CFLAGS) $(INCLUDE)   -c svgelement.cc

# main.o: main.cc svgparser.h svgdocument.h svgelement.h svgpath.h
svggroup.h
# 	$(CC) $(CFLAGS) $(INCLUDE) -c main.cc 

clean:
	rm *.o

//here is my error : 
g++  -o test -Wall -fno-inline --debug \
main.o svgelement.o svgdocument.o -L/usr/lib -L/usr/local/lib -lpthread
-lz -lm -lxml++-1.0 
main.o(.text+0x6b): In function `main':
/home/xavier/libxml/exLibxml++/sax_parser_build_dom/main.cc:49:
undefined reference to
`SVG::Parser::Parser[in-charge](xmlpp::Document&)'
main.o(.text+0x4a8):/home/xavier/libxml/exLibxml++/sax_parser_build_dom/main.cc:64: undefined reference to `SVG::Parser::~Parser [in-charge]()'
main.o(.text+0x4c1):/home/xavier/libxml/exLibxml++/sax_parser_build_dom/main.cc:64: undefined reference to `SVG::Parser::~Parser [in-charge]()'
collect2: ld returned 1 exit status
make: *** [test] Error 1

Compilation exited abnormally with code 2 at Mon Apr 26 14:04:00

Any idea ?
thank you 
Xavier





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]