Displaying 2 results from an estimated 2 matches for "tjbug".
Did you mean:
tcbug
2011 Jan 19
2
[LLVMdev] Building 176.gcc
...the source code:
#ifdef __GNUC__
inline
#endif
static unsigned int
hash (str, len)
...
Definitely, the error existed because clang has different support for
inline. Then I tried to compile with 'clang *.c -std=c99 -o gcc.clang'
because c99 supports inline. It reported this error:
/tmp/cc-tJBugS.o: In function `stat':
toplev.c:(.text+0x0): multiple definition of `stat'
/tmp/cc-aQKHyN.o:getpwd.c:(.text+0x0): first defined here
/tmp/cc-tJBugS.o: In function `fstat':
toplev.c:(.text+0x30): multiple definition of `fstat'
/tmp/cc-aQKHyN.o:getpwd.c:(.text+0x30): first defined he...
2011 Jan 19
0
[LLVMdev] Building 176.gcc
...ne
> #endif
> static unsigned int
> hash (str, len)
> ...
> Definitely, the error existed because clang has different support for
> inline. Then I tried to compile with 'clang *.c -std=c99 -o gcc.clang'
> because c99 supports inline. It reported this error:
> /tmp/cc-tJBugS.o: In function `stat':
> toplev.c:(.text+0x0): multiple definition of `stat'
> /tmp/cc-aQKHyN.o:getpwd.c:(.text+0x0): first defined here
> /tmp/cc-tJBugS.o: In function `fstat':
> toplev.c:(.text+0x30): multiple definition of `fstat'
> /tmp/cc-aQKHyN.o:getpwd.c:(.tex...