[fpc-devel] fp IDE with libgdb

Pierre Muller muller at ics.u-strasbg.fr
Wed Oct 7 16:43:01 CEST 2009


True in principle,
but XML library used for GDb
is expat, so you should
add {$linklib expat.a}
in gdbint.pp

It 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 : fpc-devel-bounces at lists.freepascal.org [mailto:fpc-devel-
> bounces at lists.freepascal.org] 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
> <markMLl.fpc-devel at telemetry.co.uk> 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  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel




More information about the fpc-devel mailing list