error: variable set but not used [-Werror=unused-but-set-variable] Right click project > Project Properties > Conf > XC32 > xc32-gcc > Preprocessing and messages > Make warnings into errors = No
Category: .Issues with XC32 compiler
Migrating to latest compiler version
Moving from V2.# to V4.# of XC32 We found we needed the following changes moving from V2.# to V4.# of the XC32 compiler: Plib is no longer maintained or distributed with current versions of compiler.Microchip expects you to use Harmony to configure and generate code for the purpose. Remove: #include <piclib.h>Replace with: #include <xc.h> Remove: […]
Math functions not available
2014-03 – Functions like round() and nearbyint() are in the xc32 mplab help but don't appear to actually exist when compiling? From support: Functions round() and nearbyint() are from Dinkumware C++ libraries packaged along with C++ compiler. The Dinkum Complete Libraries are a collection of several C++ libraries, all based on ISO standards. You can […]