Renesas Technology, Tools FAQs
Last Updated: July 22, 2003
Document Number: 03072204_e
Q.
Can a path be specified in a file name for #include specification?
A.
A relative path name can be specified. The compiler searches a relative directory for the file specified by #include from a file where
#include is written. Specifying an absolute path is inhibited, because it could impair program portability.
The following shows a description example when specifying src_1.h in the src_1.c file with #include.
Description of src_1.c:
#include "..\header\src_1.h"
:
File configuration:
C:\work\src_1.c
C:\work\src_2.c
:
C:\header\src_1.h
C:\header\src_2.h
:
Note!
In this case, if you write "\header\src_1.h" to specify the file name including a path, an error may result.
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Comentarios a estos manuales