[arm-gnu] sprintf with arm-none-eabi-gcc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[arm-gnu] sprintf with arm-none-eabi-gcc



hi,

How to get sprintf working with code-sourcery arm-none-eabi-gcc 
toolchain.

Using sprintf in the code gives errors about "undefined reference to 
sprint"
------------------------------
#include 
#include "MX21.h"

int main ()
{

	char sMessage[10];
	int i;

	i= sprintf(sMessage,"%x",15);
	return (0);
} 
-----------------------------------

I have included the path for stdio.h for arm-none-eabi-gcc.
And there are no other warnings/errors.

Thanks & regards
Aditya