This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: Re: Re: Clarifications regarding BDM GDB Insight for M68k
- From: "Prasanna - Khanapur" <bdm_future at rediffmail dot com>
- To: "Keith Seitz" <keiths at redhat dot com>
- Cc: insight at sources dot redhat dot com
- Date: 16 Apr 2002 06:10:06 -0000
- Subject: Re: Re: Re: Clarifications regarding BDM GDB Insight for M68k
- Reply-to: "Prasanna - Khanapur" <bdm_future at rediffmail dot com>
Hi
I tried putting libkernel32.a at the first as well as the last of
the libraries in the final linking of gdb.exe but seems to have no
difference and continues to display the same errors.
I'm surprised !
If its a redifinition of a function then could possibly think of
order of the library, bcos the linker puts the address of the
first occurance of the function which it gets while linking but
how does the order matter to "undefined reference" ?
Do I need to replace the libkernel32.a by any newer version? or
any other suggestions please?
Regards
Prasanna S K
On Mon, 15 Apr 2002 Keith Seitz wrote :
>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
>
>