摘要:
ld命令行工具(链接库的一个工具)的搜索路径是-L指定的,库名是-l指定的。比如: ld -L[dir] -l[mylib] --verbose以上我用可视化的方法显示ld的搜索路径,其结果是居然在mylib,也就是库文件名中自动加入了前缀lib,导致找不到我的mylib,因为我的lib名字没有加入... 阅读全文
posted @ 2014-10-21 15:32
foo__hack
阅读(1252)
评论(0)
推荐(0)
摘要:
以下这段代码是在头文件里面的,DmaOpen DmaClose函数也是直接在class pcie_chip{}里面的。加了个额外的pcie_chip::才会报错。//delete pcie_chip:: this scope identifier to solve g++ error:http://... 阅读全文
posted @ 2014-10-21 11:14
foo__hack
阅读(7115)
评论(0)
推荐(1)
摘要:
原本*号前面的类型是我用typedef自定义的类型的,MyType* const p;发生这样的错误是,编译器根本不知道MyType是什么东西,这是我在C++多重继承中遇到的。MyType是我在基类中public中定义的类型,结果在它的孙子类发生出这样的情况,不识别这个新类型。但是儿子类中也有MyT... 阅读全文
posted @ 2014-10-21 10:37
foo__hack
阅读(2248)
评论(0)
推荐(0)
摘要:
1 template 2 class stream_chip : public chip{ 3 public: 4 typedef typename stream_addrT stream_addr_type; 5 typedef typename stream_s... 阅读全文
posted @ 2014-10-21 10:09
foo__hack
阅读(10499)
评论(0)
推荐(0)