GENERAL: PASSING DEFINITIONS IN THE COMPILER INVOCATION LINE
Information in this article applies to:
I am trying to pass definitions in the invocation line of my Keil compiler exactly as it is mentioned in the manual:
C51 MYPROG.C DF (X1="1+5",iofunc="getkey ()")
However I always receive the following error message:
C51 FATAL-ERROR - ACTION: PARSING INVOKE-/#PRAGMA-LINE LINE: C:\KEIL\C51\BIN\c51.exe MYPROG.C DF(X1=1+ ERROR: ')' AFTER PARAMETER EXPECTED C51 TERMINATED.
What am I doing wrong?
Windows 32-bit programs cannot 'see' quotation marks ('"') in the invocation. This is why the C-compiler misinterprets the command line.
There is a workaround. You must insert a backslash ('\') in front of each quotation mark. For example:
C51 MYPROG.C DF (X1=\"1+5\",iofunc=\"getkey ()\")
Last Reviewed: Wednesday, April 10, 2002
of your data.