Mail Archives: djgpp/1997/10/08/04:43:23
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.
- Raw text -