Hi,
Can you please provide the full output of the make command?
Meanwhile, can you please double check that the function 'parse()' is
defined in your ParserXML.cpp file.
Thank you
Younes
On Thu, 2007-09-20 at 18:02 +0200, Laura Lozano wrote:
> 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ó 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:=g++
> OPTIONS:=-L/home/laura/xerces-c_2_8_0-x86-linux-gcc_3_4/lib
> -Wno-deprecated
> INCLUDE:=-I/home/laura/xerces-c_2_8_0-x86-linux-gcc_3_4/include/
> OBJETOS:=main.o ParserXML.o
> SOURCES:=main.cpp ParserXML.cpp
> HEADERS:=ParserXML.hpp
> LIBS:=-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?
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
--
Younes
|