Hi, there, In the example subdir, there is a Hello.c with bat file as following,
REM TRANSLATE WITH C51 ..\bin\C51 HELLO.C CODE DEBUG OBJECTEXTEND REM REM LINK WITH L51 ..\bin\L51 HELLO.OBJ IX ..\bin\OHS51 HELLO ..\bin\ds51 init(hello.ini)
*** FATAL ERROR 210: I/O ERROR ON INPUT FILE: EXCEPTION 0021H: PATH OR FILE NOT FOUND FILE: C51S.LIB
bash: syntax error near unexpected token '('
Well, I figure out the reason is that bash shell doesn't recognize the () correctly. When I use MSDos Command Prompt, it works fine. thanks, Kan
Parentheses have special meaning to the bash shell. If you want to pass the parens as part of a command-line argument to the ds51 program, you need to escape the parens in the command so that your shell won't try to process them.