LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 551|回复: 0

Why struct parport ERROR?

[复制链接]
发表于 2005-6-23 22:54:56 | 显示全部楼层 |阅读模式
I want to use parallel port,so I

vi main.cpp

  1. #include <linux/parport.h>
  2. int main()
  3. {
  4.   struct parport pp;
  5. }
复制代码

g++ main.cpp

main.cpp: In function `int main()':
main.cpp:5: aggregate `parport pp' has incomplete type and cannot be defined

HOW CAN I TO USE the struct parpart ????
thank you!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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