From: hreba <f_hreba@yahoo.com.br>
Subject: Re: -fdump-ada-spec: "FILE" not declared
Date: Tue, 7 Apr 2020 19:19:44 +0200
Date: 2020-04-07T19:19:44+02:00 [thread overview]
Message-ID: <hf3r1hFt5i0U1@mid.individual.net> (raw)
In-Reply-To: <hf3qglFt27eU1@mid.individual.net>
On 2020-04-07 19:10, hreba wrote:
> Hi,
> I am trying to generate Ada bindings for the GSL (Gnu Scientific
> Library) odeiv2 package (ordinary differential equations). So I do the
> following 2 steps:
> 1. Go to an empty directory "src" and execute
> g++ -c -fdump-ada-spec -C /usr/include/gsl/gsl_odeiv2.h
> 2. Go to an empty directory "obj" and execute
> gcc -c -gnat05 ../src/*.ads
> Unfortunately, gsl_odeiv2.h includes stdio.h, and this leads to a series
> of errors like
>
> stdio_h.ads:117:69: "FILE" not declared in
> "x86_64_linux_gnu_bits_types_FILE_h"
Excuse me, only part of the message was transmitted. Continuing:
"FILE" _is_ declared. stdio.h includes <bits/types/FILE.h>, the complete
content of which is
---------------------------------------------------------------------
#ifndef __FILE_defined
#define __FILE_defined 1
struct _IO_FILE;
/* The opaque type of streams. This is the definition used elsewhere. */
typedef struct _IO_FILE FILE;
#endif
----------------------------------------------------------------------
The definition of _IO_FILE I found in
/usr/include/x86_64-linux-gnu/bits/libio.h
but when I include this additionally, I get
# error "Never include <bits/libio.h> directly; use <stdio.h> instead."
Any idea?
--
Frank Hrebabetzky, Kronach +49 / 9261 / 950 0565
next prev parent reply other threads:[~2020-04-07 17:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-07 17:10 -fdump-ada-spec: "FILE" not declared hreba
2020-04-07 17:19 ` hreba [this message]
2020-04-11 17:01 ` hreba
2020-04-15 15:08 ` hreba
2020-04-07 19:29 ` Per Sandberg
2020-04-08 16:13 ` hreba
2020-04-15 20:02 ` Per Sandberg
2020-04-15 15:18 ` Luke A. Guest
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox