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

以下这段代码是在头文件里面的,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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值