How to create own library files

Status
Not open for further replies.

bskumar7080

Member level 2
Joined
Feb 8, 2010
Messages
48
Helped
4
Reputation
8
Reaction score
3
Trophy points
1,288
Location
India
Activity points
1,579
Hi all,
How to create own library files for MPLab C18 compiler.
for example if i want link LED blinking program to other new program, how to link it ...
 

Hi
Make a blink.c with your blinking code and a blink.h that defines the available functions.
These files could be included in any new program you make.
 

MPLab C18 compiler is an assembly code programmer rite?
I meant that it is a compiler where we write the code in assembly language rite?
Regards,
Jerin.
 

MPLab C18 compiler is an assembly code programmer rite?
I meant that it is a compiler where we write the code in assembly language rite?
Regards,
Jerin.

No, MPLAB C18 is a compiler for C not assembly designed for PIC18 series of microcontrollers.

Hope this helps.
Tahmid.
 

In that case,
Hi
Make a blink.c with your blinking code and a blink.h that defines the available functions.
These files could be included in any new program you make.
is right......
You can include the user defined functions along with your C code as in case of turbo C.
Regards,
Jerin. ;-)
 

Like creating and linking any Library in any other C compiler
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…