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

  • 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.

  • I removed the whitespace in both sides of the '=' and tried again after verifing the changes it didn't help ,do you have an idea ?

    Thanks Rafi

  • By default, the keil 8051 tools are installed in c:\keil\c51. Did you forget to include the KEIL in the path?

    Jon

  • no in my PC its in c:\c51, but i added those two lines to my makefile an it solve the problem
    now
    i get:

    ERROR 110 : CANNOT FIND SEGMENT
    SEGMENT : ?PR?.........and so

    what it means ?

    Thanks Rafi

  • This problem usally shows up when the user has COPIED the Keil tools from one computer to another instead of INSTALLING the Kiel tools.
    You did not mention the version of your tools. So look in the dialog Components, Environments, Books and set the correct environment for your copied version.
    Brad

  • i'm working with version 5.10, in code wright environment .

  • ERROR 110 : CANNOT FIND SEGMENT
    SEGMENT : ?PR?.........and so

    what it means ?


    You left out the important details (like the rest of the segment name that couldn't be found).

    If you really want to get answers, you should provide complete information and not cripple those of us who are able to help you.

    The error you have probably means that the linker couldn't find a segment that you manually specified in some way on the command line.

    Jon