Open sandro-byte32 opened 3 years ago
So there are probably two ways to fix:
a) Use --std_sdcc99 instead of --stdcc89 in command line
As in example
sdcc -mmcs51 --iram-size 128 --xram-size 0 --code-size 4096 --nooverlay --noinduction --verbose --debug -V --std_sdcc99 --model-small "relay.c"
b) change all one line comments from style:
optional code ; // a comment
to style :
optional code ; /* a comment */
Can you maybe explain this behavior.
Can't find anything on google about these terms.
So the problem is in code is from one line comments I see it from Your errors. So first way is - edit comments and change // comment to / comment /.
Next I read this doc to find the reason: http://sdcc.sourceforge.net/doc/sdccman.pdf And found some notice about one line comment (//') and --std_sdcc89 flag... There also was some info about --std_sdcc99 and seems it works...
When is want to compile i get errors.
sdcc version:
Compiling error:
How to fix that?