Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 09, 2016, 06:46:25 06:46


Login with username, password and session length


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

Posts: 120

Thank You
-Given: 45
-Receive: 3


« on: January 08, 2014, 04:08:21 16:08 »

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

Posts: 556

Thank You
-Given: 156
-Receive: 354


« Reply #1 on: January 08, 2014, 06:15:29 18: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