error: conflicting types

Hi,

I am trying to compile the Detri code from http://www.geom.uiuc.edu/software/cglist/GeomDir/#DETRI. Compiling the 'basic' directory in that, i am getting this error:

gcc -c -m64 -pipe -O2 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -I. -o arg.o arg.c

In file included from arg.c:5:
basic.h:65: error: conflicting types for ‘bzero’
basic.h:66: error: conflicting types for ‘bcopy’


This is the snippet from basic.h (line 61-68)

#if defined (sgi)
# include <bstring.h> /* bzero(), bcopy() */
#else
# if !defined (bzero)
int bzero (const void *b, int length);
int bcopy (const void *src, void *dst, int length);
# endif
#endif


Unfortunately, the compiler isnt telling me where it was previously defined. I am not sure how to go about fixing this.

Any general or specific help with respect to this error is greatly appreciated.

Thanks
bzero/bcopy can be replaced by the ANSI C functions memset/memcpy.

Your implementation doesn't appear to have bzero/bcopy. They're POSIX functions.
Topic archived. No new replies allowed.