QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1343|回复: 2

求助:这些time.h等有什么区别?

[复制链接]
发表于 2004-9-14 15:31:05 | 显示全部楼层 |阅读模式
如题
/usr/lib/bcc/include/sys/time.h
/usr/lib/bcc/include/time.h
/usr/include/linux/time.h
/usr/include/bits/time.h
/usr/include/sys/time.h
/usr/include/time.h
/usr/local/include/wine/msvcrt/time.h

编译的时候总是说有重复定义等。

怎样才能指定其中一个呢。

谢谢

附:编译信息如下:

[root@eCop3001 CFwine]# g++ -Wall -c CheckComparePath.cpp
In file included from CompareFiles.h:6,
                 from CheckComparePath.h:6,
                 from CheckComparePath.cpp:11:
/usr/local/include/wine/msvcrt/time.h:70: redefinition of `struct tm'
/usr/include/time.h:119: previous definition here
In file included from CompareFiles.h:7,
                 from CheckComparePath.h:6,
                 from CheckComparePath.cpp:11:
/usr/local/include/wine/msvcrt/io.h: In function `char *mktemp (char
*)':
/usr/local/include/wine/msvcrt/io.h:173: `mktemp (char *)' was declared `extern'
and later `static'
/usr/include/stdlib.h:623: previous declaration of `mktemp (char *)'
In file included from CompareFiles.h:16,
                 from CheckComparePath.h:6,
                 from CheckComparePath.cpp:11:
/usr/local/include/wine/msvcrt/stdlib.h: At top level:
/usr/local/include/wine/msvcrt/stdlib.h:63: conflicting types for `typedef struc
t _div_t div_t'
/usr/include/stdlib.h:98: previous declaration as `typedef struct div_t
div_t'
/usr/local/include/wine/msvcrt/stdlib.h:68: conflicting types for `typedef struc
t _ldiv_t ldiv_t'
/usr/include/stdlib.h:106: previous declaration as `typedef struct
ldiv_t ldiv_t'
/usr/local/include/wine/msvcrt/stdlib.h: In function `char *ecvt (double, int, i
nt *, int *)':
/usr/local/include/wine/msvcrt/stdlib.h:233: `ecvt (double, int, int *, int *)'
was declared `extern'
and later `static'
/usr/include/stdlib.h:729: previous declaration of `ecvt (double, int,
int *, int *)'
/usr/local/include/wine/msvcrt/stdlib.h: In function `char *fcvt (double, int, i
nt *, int *)':
/usr/local/include/wine/msvcrt/stdlib.h:234: `fcvt (double, int, int *, int *)'
was declared `extern'
and later `static'
/usr/include/stdlib.h:735: previous declaration of `fcvt (double, int,
int *, int *)'
/usr/local/include/wine/msvcrt/stdlib.h: In function `char *gcvt (double, int, c
har *)':
/usr/local/include/wine/msvcrt/stdlib.h:235: `gcvt (double, int, char *)' was de
clared `extern' and
later `static'
/usr/include/stdlib.h:740: previous declaration of `gcvt (double, int,
char *)'
In file included from CompareFiles.h:17,
                 from CheckComparePath.h:6,
                 from CheckComparePath.cpp:11:
/usr/local/include/wine/msvcrt/stdio.h: At top level:
/usr/local/include/wine/msvcrt/stdio.h:129: conflicting types for `typedef __wch
ar_t wint_t'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stddef.h:312: previous declarati
on as `typedef unsigned
int wint_t'
In file included from CompareFiles.h:18,
                 from CheckComparePath.h:6,
                 from CheckComparePath.cpp:11:
/usr/local/include/wine/msvcrt/string.h: In function `void *memccpy (void *, con
st void *, int,
unsigned int)':
/usr/local/include/wine/msvcrt/string.h:124: `memccpy (void *, const void *, int
, unsigned int)' was
declared `extern' and later `static'
/usr/include/string.h:50: previous declaration of `memccpy (void *,
const void *, int, unsigned int)'
/usr/local/include/wine/msvcrt/string.h: In function `int strcasecmp (const char
*, const char *)':
/usr/local/include/wine/msvcrt/string.h:126: `strcasecmp (const char *, const ch
ar *)' was declared
`extern' and later `static'
/usr/include/string.h:273: previous declaration of `strcasecmp (const
char *, const char *)'
/usr/local/include/wine/msvcrt/string.h: In function `char *strdup (const char *
)':
/usr/local/include/wine/msvcrt/string.h:128: `strdup (const char *)' was declare
d `extern' and later
`static'
/usr/include/string.h:120: previous declaration of `strdup (const char
*)'
/usr/local/include/wine/msvcrt/string.h: In function `int strncasecmp (const cha
r *, const char *,
unsigned int)':
/usr/local/include/wine/msvcrt/string.h:132: `strncasecmp (const char *, const c
har *, unsigned int)'
was declared `extern' and later `static'
/usr/include/string.h:277: previous declaration of `strncasecmp (const
char *, const char *, unsigned int)'
发表于 2004-9-14 15:51:50 | 显示全部楼层
贴出你的相关代码看看
回复

使用道具 举报

发表于 2004-9-15 12:53:02 | 显示全部楼层
/usr/include/sys/time.h
/usr/include/time.h
用这两个,其他的不用管
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-8 14:26 , Processed in 0.077724 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表