Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 28, 2024, 08:49:14 20:49


Login with username, password and session length


Pages: [1]
Print
Author Topic: how create library  (Read 4102 times)
0 Members and 1 Guest are viewing this topic.
hamid9543
Active Member
***
Offline Offline

Posts: 124

Thank You
-Given: 80
-Receive: 7


« on: January 08, 2014, 03:08:21 15:08 »

hi
how create library (.h file) in ccs compiler.
thx
Logged
hate
Hero Member
*****
Offline Offline

Posts: 555

Thank You
-Given: 156
-Receive: 355


« Reply #1 on: January 08, 2014, 05:15:29 17:15 »

Last time I checked (that was many many years ago) CCS didn't have a linker. I don't know if that is still the case now but if it is, your library wouldn't mean much as the basic idea of a library is to put the code in a precompiled object state ready to be linked whenever needed without any further compilation of the library, saving time.

Or in case you are trying to collect your mostly used funtions into a 'header' (.h) file, that's not actually called a library. You can achieve this by putting your function declarations and definitions in the header file and then including this file in your 'main.c' by
Code:
#include insert_your_file_here.h
Then all your functions in the .h file should be available.
Logged

Regards...
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC