How to "Provide an app-specific implementation of int open(...)"
Is it possible to provide custom fopen, fclose, etc. functions to xc32 in order to work with e.g. C++ fstreams?
Without any change, using the following line of code
warning: Linking stub open(). Hint: Provide an app-specific implementation of int open (const char *buf, int flags, int mode)
The FatFS I found provides these f_open() etc functions, but how to "Provide this app-specific implementation" to the linker?
I tried adding a simple
int open (const char *buf, int flags, int mode)
but this does not change anything (same warning). I read that this is called 'retargetting', but I can only find - with difficulty - examples for ARM, not XC32. Does anyone have an example or link to related compiler documentation?
1: the fatfs used here is the "ELM by Chan", cannot post a link
2: this should probably in MPLAB XC32 forum, something went wrong during posting
post edited by Memen - 2019/04/11 10:47:33