MQX 3.8 - twrk60n512 - IAR compiler

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

MQX 3.8 - twrk60n512 - IAR compiler

899件の閲覧回数
bob_grice
Contributor I

The supplied file 'fio.h' causes an error when used with the IAR compiler with the definition of snprintf at line 208.

 

IAR ANSI C/C++ Compiler V6.30.1.53127/W32 for ARM
Copyright 1999-2011 IAR Systems AB.
Error[Pe147]: declaration is incompatible with "__nounwind __interwork __softfp int snprintf(char *, size_t, C:\Program Files\Freescale\Freescale MQX 3.8\lib\twrk60n512.iar\psp\fio.h 208
char const *, ...)" (declared at line 196 of "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\
inc\c\stdio.h")

 

I note that the line was commented out in 3.7

 

0 件の賞賛
返信
1 返信

629件の閲覧回数
c0170
Senior Contributor III

Hi bob_grice,

 

as I noticed from your output, your project has included stdio.h header .

MQX redefines some of the functions in the stdio.h , therefore not possible to use both headers at the same time.

 

Regards,

MartinK

0 件の賞賛
返信