cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/15/07:50:43

From: MUHAMMAD101 AT cyberlib DOT itb DOT ac DOT id
Organization: Computer Center ITB
To: djgpp AT delorie DOT com
Date: Thu, 15 Oct 1998 18:48:19 +07
Subject: keyboard handler
X-mailer: Pegasus Mail v3.1 (R1a)
Message-ID: <12A09216079@cyberlib.itb.ac.id.>
Reply-To: djgpp AT delorie DOT com

Dear all....
    I try to rebuild library keyboard.a from the files :
       keyboard.c           (gcc keyboard.c -c)
       keyboard.h 
       irq.c                (gcc irq.c -c)
       irqwrap.s            (gcc -x assembler-with-cpp irqwrap.s -c)
       alexit.c             (gcc alexit.c -c)
       internel.h
       intl.h
       nointl.h
       ceditint.h
    in the file     RHIDE14S.ZIP
    Then the command :
       ar rvs keyboard.a keyboard.o alexit.o irq.o irqwrap.o

I try the library with the program sample.c :

   #include "keyboard.h"

   main() {
    install_keyboard();      
    remove_keyboard();       
    }


The result is :

Exiting due to signal SIGSEGV
General Protection Fault at eip=00001588
eax=00000000 ebx=000520e0 ecx=00000000 edx=0000c848 esi=00000054 edi=000107ac
ebp=00000004 esp=00052a04 program=C:\KEY4\S.EXE
cs: sel=00a7  base=82676000  limit=000a4fff
ds: sel=00af  base=82676000  limit=000a4fff
es: sel=00af  base=82676000  limit=000a4fff
fs: sel=0087  base=0002bfc0  limit=0000ffff
gs: sel=00bf  base=00000000  limit=ffffffff
ss: sel=00af  base=82676000  limit=000a4fff
 
Call frame traceback EIPs:
  0x00001588   _main+16, line 5 of s.c
 
Why ???
But with #include "allegro.h" function install_keyboard() and 
remove_keyboard() work fine
Please help mee !!!!!



Ridwan

- Raw text -


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