[LPCXpresso v8.1.0] Compile Error for Inline Functions

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[LPCXpresso v8.1.0] Compile Error for Inline Functions

756件の閲覧回数
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 件の賞賛
返信
1 返信

606件の閲覧回数
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 件の賞賛
返信