[LPCXpresso v8.1.0] Compile Error for Inline Functions

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[LPCXpresso v8.1.0] Compile Error for Inline Functions

382 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kiantek on Sun Feb 28 20:29:31 MST 2016
Hi, after upgrading to the new IDE, compiler prompted error on all inline functions.

For instance, I had errors for following function:

Error:
"more undefined references to `waitMs' follow"

Code:
/* Millisecond Delay */
inline void waitMs(uint32_t time)
{
while (time--)
{
volatile uint32_t i;
for (i = 0; i < (12*1000); i++) {;}//This logic was tested for 1 millisecond delay
}
}

Any ideas what went wrong?
0 Kudos
1 Reply

232 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kiantek on Sun Feb 28 22:02:36 MST 2016
Problem solved. It is a problem of porting to GCC 5. Different semantics for inline functions.

https://www.lpcware.com/content/forum/lpcxpresso-latest-release (change log)
https://gcc.gnu.org/gcc-5/porting_to.html
0 Kudos