delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/14/20:45:09

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP <--> Linux portability
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <jduhuscvahatbbad0697bu87bkob5ncerd@4ax.com>
References: <971522982 DOT 631595 AT shelley DOT paradise DOT net DOT nz>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 32
X-Trace: /bQNubPFJbJxammqIGckFRAJV5JjnL6JK29big6nkbsTj6cVZQdAGz7U7UVwfa7cxnAgAF9Sl+zH!7wMPJ+kYNx5On1Eu6onwQAir+XHhou3O8DGIHMlHgXNsrE4tlBdzp5qH3lj2XbBZ19L+4JImrcxq!MXos
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Sun, 15 Oct 2000 00:30:07 GMT
Distribution: world
Date: Sun, 15 Oct 2000 00:30:07 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Sun, 15 Oct 2000 00:30:20 +1300, "Edmund Horner"
<ejrh AT paradise DOT net DOT nz> wrote:

>1. I have a disquieting feeling that doing graphics stuff in Linux
>is tricky.  For example when I try to run the examples that come
>with the Allegro WIP, I get errors about Mode-X (this only happens
>for some of the examples).  Does a program need to do stuff with
>permissions in order to change video mode, or something?

If you run Allegro programs in the console, you need suid root for
everything except framebuffer.  Any user can run an Allegro program
in an X11 window; DGA needs suid root.

>2. Backslash-newlines, which i use occassionally for the more
>complicated #defines, aren't recognised by cpp, apparently because of
>the CRLF problem. Is there a simple way I can get around this?

Remove the CRs with dtou.

>3. Lots of functions I use often in DJGPP, usually in connection with files,
>simply don't exist in the linux library.

The Allegro library has its own portable filesystem layer.  For
example, instead of findfirst() and the like, I use for_each_file().

-- 
<O
( \   GNOME vs. KDE: the game!
 X    http://pineight.8m.com/nes.htm

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


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