|ARM Technical Support Knowledge Articles|
Applies to: General Topics
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 ()\")
Article last edited on: 2002-04-10 00:00:00
Did you find this article helpful? Yes No
How can we improve this article?