|
From: Laura L. <lau...@gm...> - 2007-09-20 16:02:04
|
Hello, I'm building a xml parser using xerces-c++ , to simplify the compilation, I've created a makefile, but I get the next error: /tmp/ccAin6yE.o: In function `main': main.cpp:(.text+0xac): undefined reference to `ParserXML::parse()' collect2: ld devolvi=F3 el estado de salida 1 make: *** [main.o] Error 1 I only have three files: main.cpp, ParserXML.hpp and ParserXML.cpp and the header file ParserXML.hpp is included in the .cpp files. This is the makefile content: GCC:=3Dg++ OPTIONS:=3D-L/home/laura/xerces-c_2_8_0-x86-linux-gcc_3_4/lib -Wno-deprecat= ed INCLUDE:=3D-I/home/laura/xerces-c_2_8_0-x86-linux-gcc_3_4/include/ OBJETOS:=3Dmain.o ParserXML.o SOURCES:=3Dmain.cpp ParserXML.cpp HEADERS:=3DParserXML.hpp LIBS:=3D-lxerces-c all:parser parser:$(OBJETOS) $(GCC) $(OPTIONS) -o parser $(OBJETOS) $(LIBS) main.o:main.cpp $(HEADERS) $(GCC) $(INCLUDE) main.cpp ParserXML.o:ParserXML.cpp ParserXML.hpp $(GCC) $(INCLUDE) ParserXML.cpp limpiar:rm *.o Someone Knows what's the problem? |