Chinaunix首页 | 论坛 | 博客
  • 博客访问: 217681
  • 博文数量: 49
  • 博客积分: 2101
  • 博客等级: 大尉
  • 技术积分: 525
  • 用 户 组: 普通用户
  • 注册时间: 2010-09-07 10:38
文章分类

全部博文(49)

文章存档

2010年(49)

我的朋友

分类: 嵌入式

2010-09-07 15:13:18

 

1 编译

修改makefile,其中对不同的系统如solarislinux等等有不同配置,直接把linux的那些注释去掉就可以了。

# The following settings can be used under Linux.  While adjtime is present,

# it is completely broken (i.e. it will work only if xntp is running), so it

# is a good idea to add -DADJTIME_MISSING.

 CC = gcc -DADJTIME_MISSING

 CFLAGS = -O

 LDFLAGS =

 LIBS = -lm

2 执行

域名

点分十进制IP

十六进制IP

ntp0.pipex.net(英国剑桥)

158.43.50.229

0x9e2b8021

 

1./msntp ntp0.pipex.net 成功

2./msntp 158.43.50.229 失败

msntp: unable to locate IP address/number

msntp: Success

3./msntp 0x9e2b8021 成功

结论,请使用域名或者十六进制IP地址。

阅读(2143) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~