Mail Archives: djgpp/1996/12/05/11:29:46
Hi!
I'm working with the Djgpp V2.01 and Allegro 2.11.
I've got an I/O card, which generates a Interrupt on the PC- ISA Bus.
After the Interrupt occurs, the PC has to read 12 times 16 bit
values. The I/O Interrupts are generated extern permanently-
independent of the PC- at a frequency of 3.2 kHz.
I've done the programming with the Allegro library, using the IRQ.C
source of Allegro (see modified source ALLEGIRQ.H).
I've tried to compile both a C and C++ programm, both with the same
source (see LESE.C and LESE.CC).
Also I'm using the Allegro lib to draw some of the values.
When compiling the C programm no errors occur, also the programm
works fine, but when leaving it I got a different errors, sometimes an
EMM error or just a simple memory fault. I've tried to get rid of that,
but don't know how or what to do.
When compiling as a C++ source, I got errors like "undefined reference to
...." when not using the EXTERN "C" command (see LESE.CC source)
and no complete compiling will be
done. When using extern "C", I' ll get an exe-file, which breaks soon
after execution.
I'm working on that problem pretty long time and still have no idea
how to get rid of it.
If anyone feels able to help me or has any idea the fault,
please mail me DIRECTLY, as I'm currently not member of the newsgroup.
Thanks in advance
Michi
**********************************************
Michael Schuster
E-mail: Schuster AT eev DOT e-technik DOT uni-erlangen DOT de
Universitaet Erlangen/Nuernberg
Lehrstuhl fuer Elektrische Energieversorgung
Cauerstrasse 4
91058 Erlangen
http://www.eev.e-technik.uni-erlangen.de/
**********************************************
- Raw text -