Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

warning: conflicting types

Hi,

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif Is there a way of getting around the errror of multiple conflicting types when compiling with NIOS2-ELF-GCC? I receive error saying "warning: conflicting types for built-in function". I understand that the main problem is that Im implementing functions that are implemented inside the NIOS2-ELF-GCC c-library. Renaming these files are not a solution since I need these files across different platforms. Is there a way to disable NIOS2-ELF-GCC library so that I can use my own library?

The error is stated below:

C:\Projects\IN_Process\NIOS2_ALTERA\posix_aio>NIOS2-ELF-GCC -g -c -I.. -I../.. src/aio_thread.c -o o/aio_thread.o

In file included from src/aio_thread.c:64:

../posixrtl/inc/string.h:96: warning: conflicting types for built-in function `memcmp&#39;

../posixrtl/inc/string.h:97: warning: conflicting types for built-in function `memcpy&#39;

../posixrtl/inc/string.h:99: warning: conflicting types for built-in function `memset&#39;

../posixrtl/inc/string.h:109: warning: conflicting types for built-in function `strncat&#39;

../posixrtl/inc/string.h:110: warning: conflicting types for built-in function `strncmp&#39;

../posixrtl/inc/string.h:111: warning: conflicting types for built-in function `strncpy&#39;

In file included from src/aio_thread.c:65:

../posixrtl/inc/stdio.h:250: warning: conflicting types for built-in function `snprintf&#39;

../posixrtl/inc/stdio.h:260: warning: conflicting types for built-in function `vsnprintf&#39;

Thanx in advance for any help. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif

3 Replies