Linux串口开发及共享库调用例程

时间:2012-08-15 12:53:57
【文件属性】:

文件名称:Linux串口开发及共享库调用例程

文件大小:3KB

文件格式:RAR

更新时间:2012-08-15 12:53:57

Linux串口开发 共享库

先在命令行运行make编译,生成串口读写共享库,然后运行gcc -s -shared -fPIC test.c -lSetupSerialPort -o test.so,编译串口读写测试程序。 文件说明: SetupSerialPort.h //串口读写库头文件 SetupSerialPort.c //串口读写库实现文件 Makefile //编译串口读写共享库 test.c //调用串口读写共享库例程 还有Linux下多线程Stocket通讯例程和firefox插件开发例程,有空整理一下贡献给大家了


【文件预览】:
SetupSerialPort
----SetupSerialPort.h(681B)
----说明.txt(370B)
----test.c(376B)
----SetupSerialPort.c(9KB)
----Makefile(225B)

网友评论

  • 不错,谢谢分享!
  • 不错,很适合学习
  • 非常有用,新手值得一看啊。
  • 很好 对我很有用处!
  • 有一定参考价值,多谢。
  • test.c: In function ‘main’: test.c:12: error: ‘bause’ undeclared (first use in this function) test.c:12: error: (Each undeclared identifier is reported only once test.c:12: error: for each function it appears in.) test.c:16: error: expected ‘;’ befo
  • 可作为参考用,对刚学的有用
  • 有用,新手值得一看啊。