View Single Post
  #5   Spotlight this post!  
Unread 27-01-2006, 16:03
dcbrown dcbrown is offline
Registered User
AKA: Bud
no team
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Hollis,NH
Posts: 236
dcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud of
Re: Calling C functions from EasyC

Tried something similar just now...

1. Use MPLab to create .o object files
2. Use command window, use mplib to create .lib file (mplib /c MyTest.lib)
3. Add .o files to my library (mplib /r MyTest.lib MyTest.o)
3. move a copy of my library MyTest.lib to c:\mcc18\lib so it can be found by EasyC during link time
4. update <processor>.lkr file under EasyC in Frc\18F***\ to reference my library, e.g.

:
FILES clib.lib
FILES p18f8520.lib
FILES MyTest.lib << added this
:

5. Referenced functions/data in MyTest.lib in EasyC... compiled/linked correctly.

Regards,
DCBrown