True in principle,
but XML library used for GDb
is expat, so you should
add {$linklib expat.a}
in gdbint.ppIt is generally easier to first try to compile testgdb executable in packages/gdbint directory. Once this executable links without errors, with the same libraries, it should also work for the IDE. Pierre Muller > -----Message d'origine----- > De : [email protected] [mailto:fpc-devel- > [email protected]] De la part de Felipe Monteiro de Carvalho > Envoyé : Wednesday, October 07, 2009 1:28 PM > À : FPC developers' list > Objet : Re: [fpc-devel] fp IDE with libgdb > > On Mon, Oct 5, 2009 at 10:27 AM, Mark Morgan Lloyd > <[email protected]> wrote: > > Linking testgdb > > /usr/local/lib/fpc/2.2.4/units/powerpc-linux/gdbint/gdbint.o: In > function > > `GDBINT_INITLIBGDB': > > gdbint.pp:(.text+0x1a60): undefined reference to `error_init' > > libgdb.a(xml-support.o): In function `gdb_xml_use_dtd': > > /usr/local/src/fpc/libgdb/gdb-6.7.1/gdb/xml-support.c:522: undefined > > reference to `XML_SetParamEntityParsing' > > /usr/local/src/fpc/libgdb/gdb-6.7.1/gdb/xml-support.c:524: undefined > > reference to `XML_SetExternalEntityRefHandler' > > /usr/local/src/fpc/libgdb/gdb-6.7.1/gdb/xml-support.c:528: undefined > > reference to `XML_UseForeignDTD' > > If libgdb wants more functions then just link more libraries to get > the necessary functions until it is happy. > > Find out which library offers the routines it wants and link them to > your application too. I would guess it wants libxml, so something like > {$linklib xml} or {$linklib libxml) > > -- > Felipe Monteiro de Carvalho > _______________________________________________ > fpc-devel maillist - [email protected] > http://lists.freepascal.org/mailman/listinfo/fpc-devel _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
