🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2655

Compiling DOS source on Unix

#2655
From: Ketil Z Malde
Date: Mon, 15 Feb 1999 00:00
26 lines
1690 bytes
Okay, I give up.

I've been trawling through websites, FAQs and Info documentation, to
no avail.

The problem is as follows:

I have a bunch of sources that were written on PCs, thus with CRLF
line termination.  I want to compile them on a Unix system, or
specifically, with GCC on Linux, which uses LF line termination.

Now all this is just fine and dandy, except some of the sources
contain \CRLF line continuation, which GCC interprets as a stray \CR
at the end of the line, and consequentially, crash and burn.

I've been unsuccessfully toying with macro defining the problem away,
and I've been searching for cpp options to inhibit this - I'd rather
not mess up the original sources.  Surely, somebody must have had this
problem before, and solved it somehow?

-kzm
-- 
If I haven't seen further, it is by standing in the footprints of giants
-- 
comp.lang.c.moderated - clcm@plethora.net
Technical Details
Message-ID: <clcm-19990215-0011@plethora.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f65d0,cf2e8be01827b0a6,start
X-Google-Attributes: gidf65d0,public
X-Google-Thread: 100850,cf2e8be01827b0a6,start
X-Google-Attributes: gid100850,public
From: Ketil Z Malde <ketil@ii.uib.no>
Subject: Compiling DOS source on Unix
Date: 1999/02/15
Message-ID: <clcm-19990215-0011@plethora.net>
X-Deja-AN: 444620812
Sender: kma@ketilboks.bgo.nera.no
X-Nntp-posting-host: 195.204.181.130
Approved: clc@plethora.net
Mail-Copies-to: never
X-Trace: ptah.visi.com 919096149 205.166.146.5 (Mon, 15 Feb 1999 10:29:09 CDT)
X-Old-complaints-to: abuse@telia.no
NNTP-Posting-Date: Mon, 15 Feb 1999 10:29:09 CDT
Newsgroups: comp.lang.c.moderated,gnu.gcc
Originator: clcm@plethora.net (Comp Lang C'Moderated)