From: Jason Green Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP <--> Linux portability Date: Sun, 15 Oct 2000 01:17:18 +0100 Organization: Customer of Energis Squared Lines: 33 Message-ID: References: <971522982 DOT 631595 AT shelley DOT paradise DOT net DOT nz> NNTP-Posting-Host: modem-140.scandium.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: newsg3.svr.pol.co.uk 971569121 1043 62.136.20.140 (15 Oct 2000 00:18:41 GMT) NNTP-Posting-Date: 15 Oct 2000 00:18:41 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Agent 1.7/32.534 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Edmund Horner" 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? I don't use Allegro but I believe it sits on top of SVGAlib in Linux. SVGAlib programs need to be suid root to have access to the video hardware. > 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? I'd like to be able to compile > the same sources that I edit with RHIDE in dos. As others have said, you can work with LF-only files in DOS if the editor supports it (use utod/dtou to convert). Also, in Linux you can use the col command to convert a CRLF file to LF-only. AFAIK, latest versions of gcc are happy with CRLF, so you could also upgrade gcc on the Linux box. > 3. Lots of functions I use often in DJGPP, usually in connection with files, > simply don't exist in the linux library. (But I can get around this by > using more complicated things like fstat().) Still, the question remains... Which functions in particular? If the DJGPP documentation lists POSIX compatibility for a function you should expect to find it on Linux too.