How can i define "_WIN32" macro??
김득중
djkim@adc.co.kr
Mon Jun 16 09:08:00 GMT 2003
Hi all.
I got the following errors when building gdb-4.17 at the cygwin-1.3.22 :
...
utils.o(.text+0x244f): In function `initialize_utils':
/home/Administrator/Angel2/build-gdb-ae32000-elf/gdb/../../gdb-4.17/gdb/utils.c:2056: undefined reference to `_tgetent'
utils.o(.text+0x245f):/home/Administrator/Angel2/build-gdb-ae32000-elf/gdb/../../gdb-4.17/gdb/utils.c:2061: undefined reference to `_tgetnum'
utils.o(.text+0x247a):/home/Administrator/Angel2/build-gdb-ae32000-elf/gdb/../../gdb-4.17/gdb/utils.c:2071: undefined reference to `_tgetnum'
../readline/libreadline.a(display.o)(.text+0xdc3): In function `insert_some_chars':
/home/Administrator/Angel2/build-gdb-ae32000-elf/readline/../../gdb-4.17/readline/display.c:757: undefined reference to `_tgoto'
../readline/libreadline.a(display.o)(.text+0xe5f): In function `delete_chars':
/home/Administrator/Angel2/build-gdb-ae32000-elf/readline/../../gdb-4.17/readline/display.c:815: undefined reference to `_tgoto'
collect2: ld returned 1 exit status
make[1]: *** [gdb] Error 1
make[1]: Leaving directory `/home/Administrator/Angel2/build-gdb-ae32000-elf/gdb'
A utils.c and a display.c include the below macro :
#if !defined (MPW) && !defined (_WIN32)
....
#if defined(_WIN32)
....
The reason of this problem is that "_WIN32" macro isn't defined.
But "_WIN32" macro exists "/usr/include/w32api/windef.h" file.
How can i to be defined "_WIN32" macro?
Djkim
More information about the Cygwin
mailing list