Managing Source Files - mikroElektronika PIC Microcontrollers PIC12 User Manual

Mikroc user's manual
Table of Contents

Advertisement

mikroC
making it simple...
mikroC - C Compiler for Microchip PIC microcontrollers
Paths for Header Files (
)
.h
Header files are included by means of preprocessor directive
. If you
#include
place an explicit path to the header file in preprocessor directive, only that location
will be searched.
If
directive was used with the
version, the search is
#include
<header_name>
made successively in each of the following locations, in this particular order:
1. mikroC installation folder > "include" folder,
2. your custom search paths.
The
version specifies a user-supplied include file; mikroC will
"header_name"
look for the header file in following locations, in this particular order:
1. the project folder (folder which contains the project file
),
.ppc
2. mikroC installation folder > "include" folder,
3. your custom search paths.

Managing Source Files

Creating a new source file
To create a new source file, do the following:
New File.
Select File > New from drop-down menu, or press CTRL+N, or click the New
File icon. A new tab will open, named "Untitled1". This is your new source file.
Select File > Save As from drop-down menu to name it the way you want.
If you have used New Project Wizard, an empty source file, named after the proj-
ect with extension
, is created automatically. mikroC does not require you to
.c
have source file named same as the project, it's just a matter of convenience.
page
24
MikroElektronika: Development tools - Books - Compilers

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?

This manual is also suitable for:

Pic microcontrollers pic16Pic microcontrollers pic18

Table of Contents