delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/17/08:48:57

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: Problem with a header file
17 Sep 1998 08:48:57 -0700 :
Message-ID: <Pine.SUN.3.93.980916211202.25431A-100000.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <9601-Wed16Sep1998105335+0200-vzell AT de DOT oracle DOT com>
Mime-Version: 1.0
To: "Dr. Volker Zell" <vzell AT de DOT oracle DOT com>
Cc: Cygnus <gnu-win32 AT cygnus DOT com>

On Wed, 16 Sep 1998, Dr. Volker Zell wrote:

> 
> vzell:/src/oracle/oci> make oci02
> gcc -o oci02 oci02.c -I. -I/usr/local/include/oci80 -lociw32 -loci
> In file included from oci02.c:64:
> \usr\local\include\oci80\oratypes.h:169: parse error before `ub8'
> \usr\local\include\oci80\oratypes.h:169: warning: data definition has no type or storage class
> \usr\local\include\oci80\oratypes.h:183: parse error before `sb8'
> \usr\local\include\oci80\oratypes.h:183: warning: data definition has no type or storage class
> make: *** [oci02] Error 1
> 
> The problem is in the oratypes.h include file:
> 
> When I change line 169 (and the same in 183) from
> 
>   typedef unsigned _int64 ub8;
> 
> to
> 
>   typedef unsigned int ub8;
            ^^^^^^^^^^^^ wrong size!

That's because _int64 is not a built-in type for GCC; it is for MSVC and
a few other win32 compilers however, and that's there's code out there
that trips over this.

Easiest fix, in oratypes.h:
  
  #ifdef __GNUC__
  typedef unsigned long long ub8;
  #endif
  typedef unsigned _int64 ub8;
  #endif

Regards,
Mumit

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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