8 years, 2 months ago.  This question has been closed. Reason: Duplicate question

....

....

1 Answer

8 years, 2 months ago.

Which version of ARM compiler are you using?

I didn't see any problem with MDK-ARM v5.21a (ARM compiler v5.06 update 3).

Accepted Answer

Thanks for your support I'm using MDK-ARM V5.13.0.0.

If I removed few lines from FunctionPointer.h file then it works and able to compile and build the library. These are the lines: MBED_DEPRECATED_SINCE("mbed-os-5.1", "FunctionPointerArg1<R, A> has been replaced by Callback<R(A)>")

Path for this file os :\mbed-os-latest\hal\api\FunctionPointer.h

One more thing : same library if I build using IAR, without any error I'm able to build library..!! This problem is only using ARM.

So,Please Help me for this. Thanks

posted by Pranav Thakur 26 Sep 2016

The MDK v5.13 uses ARM compiler 5.05u1 (build 106) which is not latest version. I recommend to update MDK-ARM v5.21 since there was behavior change between ARM compiler 5.05 and 5.06 below (The attribute deprecated now takes a parameter in GNU mode).

ARM Compiler 5.05: http://infocenter.arm.com/help/topic/com.arm.doc.dui0472k/chr1359124974790.html

ARM Compiler 5.06: http://infocenter.arm.com/help/topic/com.arm.doc.dui0472m/chr1359124974790.html

posted by Toyomasa Watarai 27 Sep 2016

Thanks, Toyomasa. It works now.

posted by Pranav Thakur 07 Oct 2016