Compact Flash card

General discussion on mikroC.
Post Reply
Author
Message
bassin
Posts: 5
Joined: 17 Jun 2005 14:38

Compact Flash card

#1 Post by bassin » 17 Jun 2005 14:43

I´m using MicroC to conect a compact flash card to a 18f458 when I compile the code it returns an error
" Undeclared identifier Cf_File_Write_Init(); in expression"
but if I change the pic in the project settings to a 18f452 it compiles the code!!!


the code is


char *ext;


void main() {
ext = "TXT";

Cf_File_Write_Init();

}

pizon
mikroElektronika team
Posts: 823
Joined: 11 Oct 2004 08:53

Re: Compact Flash card

#2 Post by pizon » 17 Jun 2005 15:09

The cffat library is missing from the definition file. Open file %app_root%\Defs\18F458.mlk, find the //LIBRARY section, and insert "cffat" after the compact flash (compact_C_F) library name. Save the file and re-open your mikroC project.
pizon

Post Reply

Return to “mikroC General”