|
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
|