10 years, 10 months ago.  This question has been closed. Reason: found the problem - darn .c vs .cpp file extension again!

New compiler errors - no change to code

I've been using the chan_fatfs library for some time now but just today I've been unable to compile. I get a L6218E error. The mbed help says:

  • Incorrect Types in function headers. For example void foo(unsigned char * foo1); void foo(char*foo1){} So I dug into the code and verified that the headers do, indeed, match the call (not surprising since this library always compiled fine before). Tried reverting to older versions and those now give the same error message. Any ideas why code that used to compile suddenly won't anymore? /media/uploads/TickTock/l6218e.jpg

The header looks like this:

ff.h

WCHAR ff_convert (WCHAR, UINT);
WCHAR ff_wtoupper (WCHAR);

and the code is as follows:

ff.cpp

    WCHAR w, *lfn;
.
.
.
            w = ff_convert(ff_wtoupper(w), 0);    /* Upper converted Unicode -> OEM code */

My code is here: http://mbed.org/users/TickTock/code/CANary/