Ryan Mansfield(deleted)
|
Re: printf to print a value not working
|
Ryan Mansfield(deleted)
03/24/2014 1:23 PM
post109593
|
Re: printf to print a value not working
On 14-03-24 01:17 PM, Roy Jose wrote:
> We are seeing issues with printf() function in QNX.
> printf() output is seen if it takes a string as argument
> For ex:
> printf("abc");
>
> But no output is seen while printing a value
> For ex:
> printf("%d", a);
> or
> printf("value = %d", a);
>
>
> Can you give some pointers on the solution for this issue.
Can you check to make sure you're not intermixing the ABIs? e.g. ARM
EABI libc.so.3, but the executable is ARM OBAI (GNU APCS), or vice
versa? The ABIs have a different calling convention, and might result in
the issue you're seeing
You'd want to make sure you're using qcc -Vgcc_ntoarmv7le and
arm-unknown-nto-qnx.6.5.0eabi-gcc, with the $QNX_TARGET/armle-v7 OS
variant, and qcc -Vgcc_ntoarmle and arm-unknown-nto-qnx.6.5.0-gcc with
the $QNX_TARGET/armle/ OS variant.
Regards,
Ryan Mansfield
|
|
|