delorie.com/archives/browse.cgi | search |
From: | "Ghalos" <greg AT holdridge7 DOT freeserve DOT co DOT uk> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | go32! |
Date: | Mon, 20 Sep 1999 22:29:31 +0100 |
Organization: | Customer of Planet Online |
Lines: | 37 |
Message-ID: | <7s68nn$nm0$1@news4.svr.pol.co.uk> |
NNTP-Posting-Host: | modem-30.neon.dialup.pol.co.uk |
X-Trace: | news4.svr.pol.co.uk 937862711 24256 62.136.4.158 (20 Sep 1999 21:25:11 GMT) |
NNTP-Posting-Date: | 20 Sep 1999 21:25:11 GMT |
X-Complaints-To: | abuse AT theplanet DOT net |
X-Newsreader: | Microsoft Outlook Express 4.72.3110.5 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
I'm writing a keyboard interrupt handler and I'm using the go32 iret wrapper like this: // Begin code fragment LOCK_VARIABLE(temp_val); LOCK_VARIABLE(raw_scan_code); LOCK_VARIABLE(keys_active); LOCK_VARIABLE(keyboard_state); LOCK_FUNCTION(keyboard_handler); _go32_dpmi_get_protected_mode_interrupt_handler(0x09, &original_vector); handler_info.pm_offset = keyboard_handler; // <-- Causes a warning! _go32_dpmi_allocate_iret_wrapper(&handler_info); _go32_dpmi_set_protected_mode_interrupt_handler(0x09, &handler_info); // End code fragment When I compile (include dpmi.h and go32.h) it will compile fine but when it links I get: Error: undefined reference to '_go32_dpmi_get_protected_mode_interrupt_vector' Error: undefined reference to '_go32_dpmi_set_protected_mode_interrupt_vector' Error: undefined reference to 'LOCK_VARIABLE' Error: undefined reference to 'LOCK_FUNCTION' however the linker does not complain about the free / allocate_iret_wrapper... I must have a library missing or something I'm guessing... can anyone help me out here? thanks in advance, -- Ghalos - greg AT holdridge7 DOT freeserve DOT co DOT uk
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |