我在vc 6.0下编译报以下的错是不是我的加动态连接库呢?是哪个库呢?

解决方案 »

  1.   

    sys/time.h only exists in POSIX environment, possibly should be using sys/utime.h under Win32
      

  2.   

    I think you should use the preprocessor and do something like:
    #if defined (WINDOWS)
    #include <fstream.h>
    #include <time.h>
    #include <stdlib.h>
    #elif defined(UNIX) || defined(LINUX)
    #include <stream.h>
    #include <sys/time.h>
    #include <sys/file.h>
    #endif
      

  3.   

    一个程序中这么写#include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <math.h>
    #include <sys/time.h>
    #include <sys/resource.h>
    #include <termios.h>
    #include <unistd.h>我该如何改,能使得在win32下编译成功呢?
      

  4.   

    #include <stdio.h> 
    #include <stdlib.h> 
    #include <string.h> 
    #include <math.h> 
    #include <sys/time.h> 
    #include <sys/resource.h> 
    #include <termios.h> 
    #include <unistd.h> 
    应改为
    #include <stdio> 
    #include <stdlib> 
    #include <string> 
    #include <math> 
    #include <sys/time> 
    #include <sys/resource> 
    #include <termios> 
    #include <unistd> 
    using namespace std;
      

  5.   

    楼主的问题就是现在c++都是用最新版本,建议你看一下新课本吧,你先改为#include <sys/time> 然后在using namespace std;这样就可以运行了
      

  6.   

    我的是vc 2003, sys目录下面根本没有time, 和resouce文件!!! 
      

  7.   

    我也遇到了同样的问题 我是LINUX下的程序 拿到Windows下编译的 不知道怎么解决 希望楼上的帮帮忙
      

  8.   

    我跟你说 #include <sys/time.h> 改为 #include <time.h>