delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/10/29/17:01:14

Date: Sat, 29 Oct 1994 15:33:55 -0400 (EDT)
From: nirva morisseau <nmoris01 AT solix DOT fiu DOT edu>
Subject: Gnat-1.83/dos/ada 9X
To: djgpp <djgpp AT sun DOT soe DOT clarkson DOT edu>

Excuse my ignorance. I am very new with Gcc. I wrote a function in C. I 
compiled it: Gcc junk.c. I did not get an junk.o, I have no error, but it
created another JUNK file with no extention. My junk.c was in the directory
c:\djgpp\bin and I compiled junk.c there. I am using an Ada 9X main driver
to use the C function. When I compiled nirva.adb it generates error as 
follow: segmentation violation. I am using function junk (Y : integer) return
integer and pragma import (C,junk,"junk") in nirva.adb in declaration 
section. Of course, since I had no idea where Interface.c is I withed in the
nirva.adb. What am I doing wrong. A little help will be greatly appreciated.
regards.


 =========================
| Nirva Morisseau-Leroy |
=========================

- Raw text -


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