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

Keil IDE vision 2

I have created a library using the keil compiler. and when i call that library
(# include "mylib.h" i have made all those functions "extern" inorder to make them available for use by others).
and try to compile it shows

#include "mylib.h"

void main()
{
call to  functions used in mylib..
loops..
some more functions....
loops and so on...
}

C318 error: cannot open the file.
can anybody please help me out in sorting out where the problem is??

thankyou in advance.

Balu............

  • #include "mylib.h"
    Specifies only the name of the file - it doesn't tell the compiler where to find it!

    Look at the 'Include Paths' option in your project.

    Check the Manual for the search rules used to find include files...

    (Note that you will also need to specify the Library file to the Linker)

  • Specifies only the name of the file - it doesn't tell the compiler where to find it!


    That is not 100% correct. When the filename is specified in between "", the preprocessor will first seek in the path of the source module.