 | Discussion Forum |  |
|
|
#include "c:\\dir\\file.c" problemNext Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author Michelle Smith Posted 25-Aug-2002 19:18 GMT Toolset C51 |  #include "c:\\dir\\file.c" problem Michelle Smith Could some one show me how to #include an absolute file such as: #include "c:\\dir\\file.c" This doesn't seem to work with C51 version 1.32
The file is there but the compiler says it can't open it Thanks,
Michelle | | Read-Only Author Vaclav Korecek Posted 26-Aug-2002 08:10 GMT Toolset C51 |  RE: #include "c:\\dir\\file.c" problem Vaclav Korecek Hi Michelle,
1. Why do you include *.c file. It is not common praxis. There is better to include header file (*.h) instead of *.C file.
2. Try to use #include "c:\dir\file.h" notation instead of #include "c:\\dir\\file.h".
Vaclav
BTW: Keil respect also "c:/dir/file.h" notation to satisfy MISRA C rules, I guess. | | Read-Only Author Michelle Smith Posted 27-Aug-2002 03:42 GMT Toolset C51 |  RE: #include "c:\\dir\\file.c" problem Michelle Smith Thanks Vaclav , Your suggestions work!!!
Michelle | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|