Date: Wed, 8 Oct 1997 10:41:30 +0200 (IST) From: Eli Zaretskii To: "Gautam N. Lad" cc: djgpp AT delorie DOT com Subject: Re: DJGPP+Allegro: Porting from DOS to Linux. Easy or Hard!?! In-Reply-To: <61d7tn$26e$2@news.interlog.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 7 Oct 1997, Gautam N. Lad wrote: > If I make a program (rather big; it's a graphical 3D modeller) using > DJGPP and Allegro, could I re-compile the program on Liunx, assuming > I had a Linux port of DJGPP and Allegro (do those port exist?) > really easily, or would I had to tweak a lot of stuff? It depends on how well will you write it ;-). You need to watch out for DOS- and DJGPP-specific stuff and either avoid it (and use portable stuff instead, perhaps at a price of performance) or encapsulate platform-dependent functions in portable wrappers and write a platform-specific version of each such function. Some potential problems to watch out for: - DOS-style pathnames (backslashes, drive letters); - non-POSIX header files and library functions; - direct device and screen access.