* ADA bindings for XVIEW
@ 1997-12-02 0:00 Andrew Wood
1997-12-02 0:00 ` Robert Dewar
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Wood @ 1997-12-02 0:00 UTC (permalink / raw)
when compiling xvAda-0.4.1 libraries, I get this error
gcc -g -O -I/usr/openwin/include -c xv_panel_package.adb
xv_panel_package.adb:165:12: convention for "xv_get" does not permit
returning unconstrained array type
make: *** [xv_panel_package.ali] Error 1
the code causing the problem is :
function xv_get (owner : Xv_opaque; cmd : Integer; Data : Integer;
term : Integer)
return Interfaces.C.Char_array;
pragma import (C,xv_get,"xv_get");
Does anyone know why ? or how to conquer ?
Andrew Wood
CERN CH-1211-Geneve,23,
Switzerland.
Phone: 78997 mobile: 160283
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ADA bindings for XVIEW
1997-12-02 0:00 ADA bindings for XVIEW Andrew Wood
@ 1997-12-02 0:00 ` Robert Dewar
1997-12-02 0:00 ` Andreas Almroth
0 siblings, 1 reply; 3+ messages in thread
From: Robert Dewar @ 1997-12-02 0:00 UTC (permalink / raw)
Andrew says
<<gcc -g -O -I/usr/openwin/include -c xv_panel_package.adb
xv_panel_package.adb:165:12: convention for "xv_get" does not permit
returning unconstrained array type
make: *** [xv_panel_package.ali] Error 1
the code causing the problem is :
function xv_get (owner : Xv_opaque; cmd : Integer; Data : Integer;
term : Integer)
return Interfaces.C.Char_array;
pragma import (C,xv_get,"xv_get");
Does anyone know why ? or how to conquer ?
>>
This program makes no sense, since C has no concept of unconstrained
arrays. So the diagnostic makes perfect sense. To conquer it, stop
trying to return unconstrained arrays!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ADA bindings for XVIEW
1997-12-02 0:00 ` Robert Dewar
@ 1997-12-02 0:00 ` Andreas Almroth
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Almroth @ 1997-12-02 0:00 UTC (permalink / raw)
Robert Dewar wrote:
>
> Andrew says
>
> <<gcc -g -O -I/usr/openwin/include -c xv_panel_package.adb
> xv_panel_package.adb:165:12: convention for "xv_get" does not permit
> returning unconstrained array type
> make: *** [xv_panel_package.ali] Error 1
>
> the code causing the problem is :
>
> function xv_get (owner : Xv_opaque; cmd : Integer; Data : Integer;
> term : Integer)
> return Interfaces.C.Char_array;
> pragma import (C,xv_get,"xv_get");
>
> Does anyone know why ? or how to conquer ?
> >>
>
> This program makes no sense, since C has no concept of unconstrained
> arrays. So the diagnostic makes perfect sense. To conquer it, stop
> trying to return unconstrained arrays!
Hm, sorry folks, by time the I wrote the code, I did not know better...
In my internal use only release (0.5) it's fixed.
I must confess I'm not proud of some of the code I wrote in the
early days of my ADA95 programming, but hopefully I've learnt a lot
during the past two years...
I've just got my hands on a SPARC Station 10, so I'm setting up a
GNAT 3.10P environment as we speak. Hopefully I can schedule some
milliseconds to put together a 0.5 public release.
It seems, after all, that at least one person is using my library,
so it will be worth the time...
Regards,
Andreas Almroth
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-12-02 0:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-02 0:00 ADA bindings for XVIEW Andrew Wood
1997-12-02 0:00 ` Robert Dewar
1997-12-02 0:00 ` Andreas Almroth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox