delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/16/05:09:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <001a01c333e5$f5652600$5b0366d2@adcpc91DJKIM>
From: =?UTF-8?B?6rmA65Od7KSR?= <djkim AT adc DOT co DOT kr>
To: "cygwin" <cygwin AT cygwin DOT com>
Subject: How can i define "_WIN32" macro??
Date: Mon, 16 Jun 2003 18:02:05 +0900
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id h5G99BT05373

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
  
  
 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019