delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/08/10:07:26

Xref: news-dnh.mv.net comp.os.msdos.djgpp:4185
Newsgroups: comp.os.msdos.djgpp
Path: news-dnh.mv.net!mv!news.NH.Destek.Net!news2.net99.net!news.cais.net!primus.ac.net!news.internetMCI.com!newsfeed.internetmci.com!usenet.eel.ufl.edu!tank.news.pipex.net!pipex!peer-news.britain.eu.net!EU.net!sun4nl!cs.vu.nl!rjvdboon
From: rjvdboon AT cs DOT vu DOT nl (Boon van der RJ)
Subject: Q: what/where is segread ?
Nntp-Posting-Host: sloep65.cs.vu.nl
Sender: news AT cs DOT vu DOT nl
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
Date: Mon, 8 Jan 1996 12:43:37 GMT
Message-ID: <DKv4op.Hp5.0.-s@cs.vu.nl>
Lines: 28
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

When I was compiling GhostScript 3.51 with DJGPP V2, I got the following
error:
gdevsvga.c(.text)..: Undefined reference to segread

It compiled from .c to .o, but when linking all the objects together
it gave the error.

******* Source code *****
/* Al the necessery includes have been done */
private int
vesa_get_info(int mode, vesa_info _ss *info)
{       registers regs;
        struct SREGS sregs;
        regs.h.ah = 0x4f;
        regs.h.al = 0x01;
        regs.rshort.cx = mode;
        segread(&sregs);  /* <== Unkown function */
        sregs.es = sregs.ss;
        regs.rshort.di = PTR_OFF(info);  /* manually defined function */
        int86x(0x10, &regs, &regs, &sregs);
        return (regs.h.ah == 0 && regs.h.al == 0x4f ? 0 : -1);
}
****** End source code ******

Does anyone know how to do it in a different way, or am i being just
plain stupid ?

Thanks in advance, Robert.

- Raw text -


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