Please help.
When compiling debug it works fine. Once I compile the project for release I get the following link error:
Link Error : Undefined : "_io_sdcard_install"
Link failed
Any ideas why this would compile for debug and receive that error once compiling for release?
Thanks in advance.
已解决! 转到解答。
Sorry, I believe this is what you were asking for:
if(_io_sdcard_install("sdcard:",(pointer)&tSYS_system_sd_init,tSYS_system_spi_handle)==MQX_OK)
it appears to say that the entire _io_sdcard struct is undefined.
Thanks
It is defined in sdcard.h:
extern _mqx_int _io_sdcard_install(char_ptr,SDCARD_INIT_STRUCT_PTR,MQX_FILE_PTR);
Out of curriousity, it should be defined if it will compile for debug would it not?
Thanks
Here is the entire Errors:
Link Error : Undefined : "_io_sdcard_install"
Referenced from "SYS_system_fs_setup" in
Error : Undefined : "_io_sdcard_spi_init"
Referenced from "tSYS_system_sd_init" in
Error : Undefined : "_io_sdcard_spi_read_block"
Referenced from "tSYS_system_sd_init" in
Error : Undefined : "_io_sdcard_spi_write_block"
Referenced from "tSYS_system_sd_init" in
Link failed.