Open GoogleCodeExporter opened 8 years ago
Sorry - should have included make file:
# Makefile: build miniread which illustrates using TinyXML++ (ticpp)
#
# To update after changing any dependencies: make depend
#
.SUFFIXES: .cpp
CXXFLAGS=-g
%.o : %.cpp
$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
HELLO_CFILES=hello.cpp
HELLO_OBJFILES=$(HELLO_CFILES:.cpp=.o) $(TINYXML_CFILES:.cpp=.o)
LOOKUP_CFILES=lookup.cpp
LOOKUP_OBJFILES=$(LOOKUP_CFILES:.cpp=.o) $(TINYXML_CFILES:.cpp=.o)
TINYXML_CFILES=tinyxmlerror.cpp ticpp.cpp tinyxml.cpp tinyxmlparser.cpp
ALL_CFILES=$(TINYXML_CFILES) $(HELLO_CFILES)
default:
@echo 'Type "make hello" to make the example;'
hello: $(HELLO_OBJFILES)
$(CXX) $(CXXFLAGS) -o hello $(HELLO_OBJFILES)
clean:
rm -f *.o hello
depend:
sed -n '1,/^##DEPENDENCIES##/p' <Makefile >Makefile.bak
gcc -MM $(CXXFLAGS) $(ALL_CFILES) | cat Makefile.bak - >Makefile
rm Makefile.bak
##DEPENDENCIES##
tinyxmlerror.o: tinyxmlerror.cpp tinyxml.h ticpprc.h
ticpp.o: ticpp.cpp ticpp.h tinyxml.h ticpprc.h
tinyxml.o: tinyxml.cpp tinyxml.h ticpprc.h
tinyxmlparser.o: tinyxmlparser.cpp tinyxml.h ticpprc.h
hello.o: hello.cpp ticpp.h tinyxml.h ticpprc.h
Original comment by adamtars...@gmail.com
on 29 Jul 2008 at 2:35
please post the errors
it appears that you missed "#define TIXML_USE_TICPP" prior to #include "ticpp.h"
Original comment by rjmy...@gmail.com
on 29 Jul 2008 at 10:52
Original issue reported on code.google.com by
adamtars...@gmail.com
on 29 Jul 2008 at 2:34