Keil C library ??

S

spotato

How to use a self created library in Keil C ?

=======================================
i have create a header file myfirst.h
=======================================
#pragma SAVE
#pragma REGPARMS
extern char returndummychar(void);
#pragma RESTORE

========================================
and the source code myfirst.c
========================================
char returndummychar(void)
{
return('a');
}

========================================
I compile the file and have myfirst.obj
========================================

lib51 create myfirst.lib
lib51 add myfirst.obj to myfirst.lib

============================================
All the above steps are done. now, how to include the myfirst.lib in a new C
project ??

Thank you very much in advance !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top