Preprocessor problem

Hi,

I need to compile C code for QNX that has multiline #define statements, such
has:


#define someStatement
someCode on other line
someCode on other line \

But neither qcc or QCC accept this syntax, which is part of ansi. How can I
compile code in QNX with multiline defines? Is there some other character
than \ that I must use instead, or some preprocessor options to enable this?

Thanks

Bernard

I’ve had this happen if the file is in DOS format, use the textto utility to convert
it to Unix/QNX4 format.

Dave Rempel


Bernard Biron <bb2@hermes.usherb.ca> wrote:

Hi,

I need to compile C code for QNX that has multiline #define statements, such
has:


#define someStatement
someCode on other line
someCode on other line \

But neither qcc or QCC accept this syntax, which is part of ansi. How can I
compile code in QNX with multiline defines? Is there some other character
than \ that I must use instead, or some preprocessor options to enable this?

Thanks

Bernard

David Rempel <drempel@qnx.com> wrote:

I’ve had this happen if the file is in DOS format, use the textto utility to convert
it to Unix/QNX4 format.

As well, make sure there are no spaces after the ‘’

Bernard Biron <> bb2@hermes.usherb.ca> > wrote:
Hi,

I need to compile C code for QNX that has multiline #define statements, such
has:


#define someStatement
someCode on other line
someCode on other line \

But neither qcc or QCC accept this syntax, which is part of ansi. How can I
compile code in QNX with multiline defines? Is there some other character
than \ that I must use instead, or some preprocessor options to enable this?

regards,
Tom

Thanks you very much, that was indeed the problem.

Bernard


“David Rempel” <drempel@qnx.com> a écrit dans le message news:
ahp2p6$cg3$1@nntp.qnx.com

I’ve had this happen if the file is in DOS format, use the textto utility
to convert
it to Unix/QNX4 format.

Dave Rempel


Bernard Biron <> bb2@hermes.usherb.ca> > wrote:
Hi,

I need to compile C code for QNX that has multiline #define statements,
such
has:


#define someStatement
someCode on other line
someCode on other line \

But neither qcc or QCC accept this syntax, which is part of ansi. How
can I
compile code in QNX with multiline defines? Is there some other
character
than \ that I must use instead, or some preprocessor options to enable
this?

Thanks

Bernard



\