swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

define statements and \


From: Paul Johnson
Subject: define statements and \
Date: Tue, 05 Sep 2000 11:39:21 -0500

With gcc-2.95.2, I have recently run into this problem a lot. Code uses
a \ in a define statement, as in:


#define Fact( id, doc, a1, a2, a3, a4, a5, a6, a7, a8, e1, e2, e3, e4,
e5, e6, e7, e8, e9, e10, n1, n2, n3, n4, n5, n6, n7, n8, n9, n10, pr ) \
   enum __##id { e1, e2, e3, e4, e5, e6, e7, e8, e9, e10 };

and the compiler error is

 stray '\' in program

I gather WIndows allows continuation in define lines and Linux does not?

-- 
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ukans.edu/~pauljohn
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66045                FAX: (785) 864-5700

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]