Mail Archives: djgpp/1994/10/29/17:01:14
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 -