Forum Discussion
Altera_Forum
Honored Contributor
21 years agowarning: 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' ../posixrtl/inc/string.h:97: warning: conflicting types for built-in function `memcpy' ../posixrtl/inc/string.h:99: warning: conflicting types for built-in function `memset' ../posixrtl/inc/string.h:109: warning: conflicting types for built-in function `strncat' ../posixrtl/inc/string.h:110: warning: conflicting types for built-in function `strncmp' ../posixrtl/inc/string.h:111: warning: conflicting types for built-in function `strncpy' In file included from src/aio_thread.c:65: ../posixrtl/inc/stdio.h:250: warning: conflicting types for built-in function `snprintf' ../posixrtl/inc/stdio.h:260: warning: conflicting types for built-in function `vsnprintf' Thanx in advance for any help. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif3 Replies
- Altera_Forum
Honored Contributor
Try the -fno-builtin compiler option.
--Scott - Altera_Forum
Honored Contributor
Thanks, your a genius. I've been scratching my head all day trying to fix the problem http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif
can you give me link to more information to Nios cygwin command lines? once again thanx http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wink.gif - Altera_Forum
Honored Contributor
cygwin is just a unix environment for windoze. Any good unix book will give you
lots of helpful information. However, when I have trouble falling asleep, I browse: http://man.he.net/ (http://man.he.net/) I find that I always learn something new ... just before insomnia turns to narcolepsy ;-) You can also use the 'man' command from a shell prompt for info on a specific command. E.g.: $ man gcc --Scott