www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/22/08:54:31

Message-Id: <199902221353.IAA30583@delorie.com>
From: "Laurynas Biveinis" <lauras AT softhome DOT net>
To: djgpp AT delorie DOT com
Date: Mon, 22 Feb 1999 14:55:17 +0100
MIME-Version: 1.0
Subject: Re: Help : cannot switch screen mode
References: <199902212039 DOT PAA00064 AT delorie DOT com>
In-reply-to: <Pine.SUN.3.91.990222133218.15762I-100000@is>
X-mailer: Pegasus Mail for Win32 (v3.01d)
Reply-To: djgpp AT delorie DOT com

Date sent:      	Mon, 22 Feb 1999 13:34:57 +0200 (IST)
From:           	Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To:             	Laurynas Biveinis <lauras AT softhome DOT net>
Copies to:      	djgpp AT delorie DOT com
Subject:        	Re: Help : cannot switch screen mode

> Is this the exact source you compiled?  I don't think so: there's no 
> function _dpmi_int in the DJGPP's library, it's __dpmi_int (with two 
> leading underscores).  So this source should not even compile.  Please 
> post the *exact* source that you compiled, and the exact command line
> you used to compile and link it.

Well, this was the EXACT source. I tried compiling it under RHIDE 
and then under DOS window using: 

gcc mode13.c -o mode13.exe

and compiler accepted this silently. I got following warning only 
when added -Wall:

mode13.c: In function `main':
mode13.c:8: warning: implicit declaration of function `_dpmi_int'

So I added extra leading underscores and now it works without 
problems. 

Thanx for your help and time.

P.S. BTW I had a problem which I cannot reproduce now: when I 
added missing underscores to my source in RHIDE which was 
running in window, I still received SIGSEGV, and when I tried to run 
it in fullscreen mode, I got black screen, and only Ctrl-Alt-Del could 
escape from it. After reboot everything worked OK.

- Raw text -


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