|
|
发表于 2010-6-10 09:10:09
|
显示全部楼层
ad测试程序,肯定不会存在像楼主说的那样问题,缺少必要的定义编译都会有问题,又何来编译好的可执行程序呢?
至于你的程序在编译的时候缺少定义,你检查一下是不是你误删了语句,与下面的比较一下
#include "stdio.h"
#include "sys/types.h"
#include "sys/ioctl.h"
#include "stdlib.h"
#include "termios.h"
#include "sys/stat.h"
#include "fcntl.h"
#include "sys/time.h"
此外提醒一下,例程是在红帽9 下用3.4.1编译器编译的 |
|