Errors on SDFlash.lib

Hi,

I was trying to run the sample program of the sd flash (SDFLASH.INSPECT.C) inside my Dynamic C 10.46 and I get all kinds of error.

I found out that the problem is that the constants in sd_dev_interface (SDFLASH.LIB) are not defined. I tried to define myself with proper parameter eg.

#define SD_CS_PORT PBDR
#define SD_CS_PORT_DRSHADOW PBDRShadow
#define SD_CS_PIN 1
#define SD_CS_PORT_DDR PBDDR
#define SD_CS_PORT_DDRSHADOW PBDDRShadow
.
.
etc

But errors are still present and I had scatched my head out.
I would like to ask whether it is necessary to define those parameter myself?

Anyone that had tried out sample program SDFLASH_INSPECT.C can PLEASE help me with this problem???

Really appreciated.
Thank you very much.
Sorry for the inconvenience.

.

oh… forgot to mention…
I’m using RCM4300 for my sd interface.

.