November 22, 2024, 04:58:16 PM

Problem with string.h library on openods

Started by redon, May 24, 2013, 11:49:04 AM

Previous topic - Next topic

redon

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

maria_olimex

Hello redon,

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

Best Regards,
Maria/OLIMEX
Software developer at Olimex