I am using MDD library from Microchip. The FSfprintf is defined in FSIO.c and I already included the file. At the same time, I enable the this function in FSconfig.h, but the error cant be solved. The symbol i triple confirm it, it should be right. Below is the output after i build my code.
----------------------------------------------------------------------
Debug build of project `C:\Users\owner\Desktop\fyp!\testingtesting.mcp' started.
Language tool versions: mpasmwin.exe v5.42, mplink.exe v4.40, mcc18.exe v3.40, mplib.exe v4.40
Preprocessor symbol `__DEBUG' is defined.
Mon Mar 05 01:03:02 2012
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\Users\owner\Desktop\fyp!\testingtesting.o".
Clean: Deleted file "C:\Users\owner\Desktop\fyp!\FSIO.o".
Clean: Deleted file "C:\Users\owner\Desktop\fyp!\SD-SPI.o".
Clean: Deleted file "C:\Users\owner\Desktop\fyp!\salloc.o".
Clean: Done.
Executing: "C:\Program Files (x86)\Microchip\mplabc18\v3.40\bin\mcc18.exe" -p=18F4620 /i"C:\Microchip Solutions\MDD File System-SD Card\Pic18f" -I"C:\Microchip Solutions\Microchip\PIC18 salloc" -I"C:\Microchip Solutions\Microchip\Include\PIC18 salloc" -I"C:\Microchip Solutions\Microchip\Include\MDD File System" -I"C:\Microchip Solutions\Microchip\Include" -I"C:\Program Files (x86)\Microchip\mplabc18\v3.40\h" "testingtesting.c" -fo="testingtesting.o" -D__DEBUG
C:\Users\owner\Desktop\fyp!\testingtesting.c:41:Warning [2058] call of function without prototype
C:\Users\owner\Desktop\fyp!\testingtesting.c:47:Warning [2058] call of function without prototype
C:\Users\owner\Desktop\fyp!\testingtesting.c:195:Warning [2058] call of function without prototype
Executing: "C:\Program Files (x86)\Microchip\mplabc18\v3.40\bin\mcc18.exe" -p=18F4620 /i"C:\Microchip Solutions\MDD File System-SD Card\Pic18f" -I"C:\Microchip Solutions\Microchip\PIC18 salloc" -I"C:\Microchip Solutions\Microchip\Include\PIC18 salloc" -I"C:\Microchip Solutions\Microchip\Include\MDD File System" -I"C:\Microchip Solutions\Microchip\Include" -I"C:\Program Files (x86)\Microchip\mplabc18\v3.40\h" "Microchip Solutions\Microchip\MDD File System\FSIO.c" -fo="FSIO.o" -D__DEBUG
Executing: "C:\Program Files (x86)\Microchip\mplabc18\v3.40\bin\mcc18.exe" -p=18F4620 /i"C:\Microchip Solutions\MDD File System-SD Card\Pic18f" -I"C:\Microchip Solutions\Microchip\PIC18 salloc" -I"C:\Microchip Solutions\Microchip\Include\PIC18 salloc" -I"C:\Microchip Solutions\Microchip\Include\MDD File System" -I"C:\Microchip Solutions\Microchip\Include" -I"C:\Program Files (x86)\Microchip\mplabc18\v3.40\h" "Microchip Solutions\Microchip\MDD File System\SD-SPI.c" -fo="SD-SPI.o" -D__DEBUG
Executing: "C:\Program Files (x86)\Microchip\mplabc18\v3.40\bin\mcc18.exe" -p=18F4620 /i"C:\Microchip Solutions\MDD File System-SD Card\Pic18f" -I"C:\Microchip Solutions\Microchip\PIC18 salloc" -I"C:\Microchip Solutions\Microchip\Include\PIC18 salloc" -I"C:\Microchip Solutions\Microchip\Include\MDD File System" -I"C:\Microchip Solutions\Microchip\Include" -I"C:\Program Files (x86)\Microchip\mplabc18\v3.40\h" "Microchip Solutions\Microchip\PIC18 salloc\salloc.c" -fo="salloc.o" -D__DEBUG
Executing: "C:\Program Files (x86)\Microchip\mplabc18\v3.40\bin\mplink.exe" /p18F4620 /l"C:\Program Files (x86)\Microchip\mplabc18\v3.40\lib" "..\..\..\..\Program Files (x86)\Microchip\mplabc18\v3.40\bin\LKR\18f4620_g.lkr" "testingtesting.o" "FSIO.o" "SD-SPI.o" "salloc.o" /u_CRUNTIME /u_DEBUG /z__MPLAB_BUILD=1 /z__MPLAB_DEBUG=1 /o"testingtesting.cof" /M"testingtesting.map" /W
MPLINK 4.40, Linker
Device Database Version 1.3
Copyright (c) 1998-2011 Microchip Technology Inc.
Error - could not find definition of symbol 'FSfprintf' in file './testingtesting.o'.
Errors : 1
Link step failed.
----------------------------------------------------------------------
Debug build of project `C:\Users\owner\Desktop\fyp!\testingtesting.mcp' failed.
Language tool versions: mpasmwin.exe v5.42, mplink.exe v4.40, mcc18.exe v3.40, mplib.exe v4.40
Preprocessor symbol `__DEBUG' is defined.
Mon Mar 05 01:03:10 2012
----------------------------------------------------------------------
BUILD FAILED
I debug it for few days but still i could not get through this. Hope to hear from you soon if you have any solutions about this. Thanks.
