[cfe-dev] incompatible redeclaration of library function

Henrique Almeida hdante at gmail.com
Tue Jun 30 00:22:12 PDT 2009


I'm having the following warning, when trying to compile standard
library functions, like strlen, memset, etc.

warning: incompatible redeclaration of library function 'strlen'

size_t strlen(const char *s);
       ^
note: 'strlen' is a builtin with type 'unsigned int (char const *)'

size_t is a typedef for unsigned long. clang CFLAGS include -std=c99
-nostdlib -nostdinc

 I'm not sure how to solve this. It would be useful if size_t were
defined as unsigned long. Any advice ?

-- 
 Henrique Dante de Almeida
 hdante at gmail.com



More information about the cfe-dev mailing list