Hello,
Would appreciate some pointers on how to solve the following…
I trying to cross compile (x86 target) a module using the Momentics IDE
on a Win2K box. This module happily compiles on a QNX box, so I am
confident here no syntatic issues. Anyhow attempting to compile on a
Windows boxs reults in a large number of the following errors:
parse error before `.’
stray ‘’ in program
They refer to macro definitions in which \ is used as a line
continuation - standard stuff I thought…
Appreciate any information.
Hanif.
Hanif Ladha <hladha@vortek.com> wrote:
Hello,
Would appreciate some pointers on how to solve the following…
I trying to cross compile (x86 target) a module using the Momentics IDE
on a Win2K box. This module happily compiles on a QNX box, so I am
confident here no syntatic issues. Anyhow attempting to compile on a
Windows boxs reults in a large number of the following errors:
file details…> parse error before `.’
file details…> stray ‘’ in program
They refer to macro definitions in which \ is used as a line
continuation - standard stuff I thought…
Hm… I wonder if it is CRLF vs CR issues?
I did a little test where I create a macro with a \ to continue
the definition, compiled and ran it. It worked fine.
So, I’m guessing its a line termination issue of some flavour.
Hm…though I just tried converting the file to QNX format, and
recompiling under Windows, and it still didn’t fail.
Hm… is there any whitespace after the \ on the line you want
continued? Such whitespace could be a problem.
-David
QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.
Check that you’ve converted the source file into the proper type for the
platform you’re building on. Windows/DOS expects a CR/LF at the end of each
line, whereas we don’t (just LF).
When using ftp, ensure you’re in ASCII mode or use the QNX tool ‘textto’ to
convert between the two.
–
Cheers,
Adam
With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>
Hanif Ladha <hladha@vortek.com> wrote in message
news:artu3p$jdc$1@inn.qnx.com…
Hello,
Would appreciate some pointers on how to solve the following…
I trying to cross compile (x86 target) a module using the Momentics IDE
on a Win2K box. This module happily compiles on a QNX box, so I am
confident here no syntatic issues. Anyhow attempting to compile on a
Windows boxs reults in a large number of the following errors:
file details…> parse error before `.’
file details…> stray ‘’ in program
They refer to macro definitions in which \ is used as a line
continuation - standard stuff I thought…
Appreciate any information.
Hanif.