ChinaUnix.net
相关文章推荐:

linux time.h

在unix上编译pro *c程序,引用了头文件,编译出错: $ make -f demo1.mk EXE=demo cc -o demo demo.c -I/oracle/product/8.1.7/precomp/public -L/oracle/product/8.1. 7/lib -lclntsh -lpthread -lsql8 "./time.h", line 24: #error: ERROR: Only Mac or Win32 targets supported! cc: acomp failed for demo.c *** Error code 2 make: Fatal error: Command failed for target `demo' 是不是在上不能用啊,那我怎么得到当前时间呢?

by zy.mable - C/C++ - 2004-03-12 22:30:39 阅读(815) 回复(4)

相关讨论

在unix上编译pro *c程序,引用了头文件,编译出错: $ make -f demo1.mk EXE=demo cc -o demo demo.c -I/oracle/product/8.1.7/precomp/public -L/oracle/product/8.1. 7/lib -lclntsh -lpthread -lsql8 "./time.h", line 24: #error: ERROR: Only Mac or Win32 targets supported! cc: acomp failed for demo.c *** Error code 2 make: Fatal error: Command failed for target `demo' 是不是在上不能用啊,那我怎么得到当前时间呢?

by zy.mable - 数据库开发 - 2004-03-12 10:58:45 阅读(1006) 回复(0)

在使用cygwin时,编译一个C文件,错误提示是缺失sys/time.h头文件,请问怎么能把它填上? 这个C文件是在unix下编写的,用cygwin能实现嘛?

by ruby220 - C/C++ - 2008-11-25 17:00:01 阅读(5737) 回复(14)

我需要把linux下的 sys/time.h改编成windows下的程序 多谢

by fbig - C/C++ - 2004-12-24 16:22:28 阅读(4078) 回复(3)

小弟初学unix下编程,以下代码出现编译错误 #include <time.h>; time_t timeData; time(&timeData); tm* ptm; ptm = gmtime(&timeData); printf("\n year since 1900 : %d",ptm->;tm_year); gcc time1.out 编译报错 time1.out:10: 'tm' undeclared (first use in this function) 后三句改为printf("\n year since 1900 : %d",gmtime(&timeData)->;tm_year); 工作正常。 这是怎么回事?望熟悉的仁兄赐教。

by arthurWang - BSD - 2004-01-31 09:04:31 阅读(1706) 回复(2)

如题 哪位 知道 帮忙解答一下 先谢过了!

by lionhui - C/C++ - 2007-01-23 12:47:27 阅读(3725) 回复(3)

AIX 5.3的sys/time.h中为何没有adjtime函数,但man可以查到。

by cxcheung - AIX - 2008-04-15 12:35:01 阅读(1843) 回复(0)
by I_am_Ares - 其他UNIX - 2006-04-30 17:06:43 阅读(2341) 回复(5)

tm结构转化成time_t时,time_t==long, 当时间>;2036左右时,秒数超出long的取值 范围, <time.h>;中的函数不能工作,如何解决!!!

by wxmin - C/C++ - 2003-10-20 22:16:10 阅读(650) 回复(0)

The time difference will cause many problem while sharing data between linux and Windows servers. Actually, this issue occurs also among windows servers. To solve this issue, the Windows domain server will startup a time server. Every time the workstation starts up, it will sychronize its time with the server. Since the time server runs over the standard protocol NTP, the linux server can also syn...

by dpan817 - Windows系统 - 2003-07-25 17:48:29 阅读(1490) 回复(1)