Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/22/04 14:18
Read: times


 
#81688 - SDCC Linking problem
Dear Members,

I am a registered member of 8052.com. I have started using SDCC recently and am not clear about following techniques.


-- If we have a routine developed by other party, say lib24c16.c and we wish to integrate it with our main routine, how exactly we should do that? By using the include file or by using SDCC main.c lib24c16.rel?
-- If we include a particular header file say lib24c16.h, where is the original lib24c16 file is supposed to be available for the compiler to search it by default.


While using the code for i2c devices, we are taking following route.

#include<8052.h>
#include<lib24c16.h>

sbit at 0x85 SCL;
sbit at 0x86 SDA;


void main (void)
{
weeprom(0,0x06,0xfe) // write at page zero, address 0x06 the value 0xfe // of 24c02
}


While compiling this routine by SDCC, we get the error ??ASLink - Warning - undefined global - _weeprom......

We are not sure how to use this type of functions.


Original files lib24c16.h and lib24c16.c used in this routine are from site

http://www.qsl.net/dl9sec/SDCC_OKR.html

With best regards.

Mahesh Vyas.



List of 3 messages in thread
TopicAuthorDate
SDCC Linking problem            01/01/70 00:00      
   Multi-file projects            01/01/70 00:00      
   Multi file            01/01/70 00:00      

Back to Subject List