首页 > 其他 > 详细

g++ error: extra qualification on member [-fpermissive]

时间:2014-10-21 11:55:11      阅读:631      评论:0      收藏:0      [点我收藏+]

以下这段代码是在头文件里面的,DmaOpen DmaClose函数也是直接在class pcie_chip{}里面的。加了个额外的pcie_chip::才会报错。

 

//delete pcie_chip:: this scope identifier to solve g++ error:http://stackoverflow.com/questions/5642367/extra-qualification-error-in-c
        //this usage does not accord to C++ standard , and fuck the MSVC surpport this feature
         
    void /*pcie_chip::*/DmaOpen(  bool fPolling ,  
                            unsigned long  dwOptions ,
                            unsigned char *pdata  ,
                            int64 size ) ;
 
    void  /*pcie_chip::*/DmaClose(  ) ;

 

 

就是上述那样,需要把pcie_chip::注释掉。   MSVC支持的C++太特么不标准了,所以很多程序员养成了恶习。

 

reference:

http://stackoverflow.com/questions/5642367/extra-qualification-error-in-c

g++ error: extra qualification on member [-fpermissive]

原文:http://www.cnblogs.com/foohack/p/4039855.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!