This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: Clarifications regarding BDM GDB Insight for M68k


On 15 Apr 2002, Prasanna - Khanapur wrote:

> http://www.vas-gmbh.de/software/mpcbdm
> for running the bdm,I have to use the Insight-GDB 5.0 version
> itself.

Ah, ok. I see. Too bad: insight 5.0 is really, ummm, marginal.

> But the few other error still persists as fallows:
>
> *****************************************************
> gcc -g -O2       -Wl,--subsystem,console -o gdb.exe main.o
> libgdb.a    ../bfd/libbfd.a ../readline/libreadl
> libgdb.a(gdbtk.o): In function `initialize_gdbtk':
> /home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:603:
> undefined reference to `FreeConsole'
> /home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:609:
> undefined reference to `GetStdHandle'
> /home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:609:
> undefined reference to `GetFileType'
> /home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:620:
> undefined reference to `AllocConsole'
> /home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:621:
> undefined reference to `GetStdHandle'
> /home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:624:
> undefined reference to `GetStdHandle'
> /home/taxi/insight-5.0/insight-5.0/gdb/./gdbtk/generic/gdbtk.c:627:
> undefined reference to `GetStdHandle'
> collect2: ld returned 1 exit status
> make[1]: *** [gdb.exe] Error 1

Yes, you are correct: you need to link against kernel32.

> But still the error persist , what could be the problem?
> Am I using the right library or does the order of the linking
> matters?

It often does. Did you put it last in the list of libraries?

Keith



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]