Olimex Support Forum

ARM => ST => Topic started by: redon on May 24, 2013, 11:49:04 AM

Title: Problem with string.h library on openods
Post by: redon on May 24, 2013, 11:49:04 AM
Hello ,

I wont use strncmp function of string library .

How I can add this library on my new project run on openods

when I build my project I have this error :

C:\OlimexODS\examples\STM32-P103-TEST/main.c:197: undefined reference to `strncmp'

board : STM32_P103


main :


#include "stm32f10x.h"
#include "main.h"
#include <string.h>

.
.
.
if (!strncmp(buff, "GPGGA", 6)){
     datagps.header=('$GPGGA');
.
.
.


makefile :

http://pastebin.com/aFnUZHpg

thanks
Title: Re: Problem with string.h library on openods
Post by: maria_olimex on May 24, 2013, 02:05:39 PM
Hello redon,

please take a look at this thread:
http://embdev.net/topic/129822

Best Regards,
Maria/OLIMEX