PDA

View Full Version : File inclusion issue:


Joshua Lynn
02-10-2006, 07:09 AM
Add a .h file in the File Inclusion dialog does not seem to make the file appear in the code window as a #include

using a .h seems to be the only way to easily include structures and external functions that aren't in a .lib

How do you link other .c files for functions written elsewhere

koenig3456
02-10-2006, 07:34 AM
The header files that you add to the file inclusion dialog are put into main.h.

You can link other .o files (.o files are what you get after compiling .c files) by adding them to the linker script used by EasyC. Just add FILES commands into the script following the existing ones. If you installed EasyC in the default location, the linker script for the 2006 RC is C:Program FilesIntelitekeasyC for FRCFrc18f872218f8722.lkr.