This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

errors 318 & 210

I have two questions :



1. When compiling my project include files in the c51\INC directory can't be located.

there is an error ("can't open file 'stdio . h" …..) but if I write the #include with the full path

#include "c:\c51\inc\stdio.h" instead of

#include <stdio.h>

the files are located.

My autoexec.bat file is :



Set path = c:\c51\bin

Set c51lib = c:\c51\lib

Set c51inc = c:\c51\inc



How do we specify include files that don't reside in the \C51\INC directory?



2. Another error that I've got is:



***FATAL ERROR 210: I/O ERROR ON INPUT FILE:

EXCEPTION 0021H: PATH OR FILE NOT FOUND

FILE: LIB\C51L.LIB



I've checked and the c51l.lib file is in the lib directory

What is the reason for this fatal error?



Thanks

Rafi

Parents
  • Set c51lib = c:\c51\lib


    If that's exactly what your line in autoexec.bat looks like, I would assume that's the cause of your problem: you have blanks in there which you shouldn't have. Remove the whitespace to both sides of the '=' and try again. Likewise for the other settings in this list.

    (And make sure this setting actually took hold: type

    set | find /i "c51"

    at the command prompt and verify that these are actually set. And don't forget to set TMP, too, while at it.)

    How do we specify include files that don't reside in the \C51\INC directory?

    By finding the INCDIR option in the C51 Manual.

Reply
  • Set c51lib = c:\c51\lib


    If that's exactly what your line in autoexec.bat looks like, I would assume that's the cause of your problem: you have blanks in there which you shouldn't have. Remove the whitespace to both sides of the '=' and try again. Likewise for the other settings in this list.

    (And make sure this setting actually took hold: type

    set | find /i "c51"

    at the command prompt and verify that these are actually set. And don't forget to set TMP, too, while at it.)

    How do we specify include files that don't reside in the \C51\INC directory?

    By finding the INCDIR option in the C51 Manual.

Children