g++ error: extra qualification on member [-fpermissive]
生活随笔
收集整理的這篇文章主要介紹了
g++ error: extra qualification on member [-fpermissive]
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
以下這段代碼是在頭文件里面的,DmaOpen DmaClose函數(shù)也是直接在class pcie_chip{}里面的。加了個(gè)額外的pcie_chip::才會(huì)報(bào)錯(cuò)。
?
//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 featurevoid /*pcie_chip::*/DmaOpen( bool fPolling , unsigned long dwOptions ,unsigned char *pdata ,int64 size ) ;void /*pcie_chip::*/DmaClose( ) ;?
?
就是上述那樣,需要把pcie_chip::注釋掉。?? MSVC支持的C++太特么不標(biāo)準(zhǔn)了,所以很多程序員養(yǎng)成了惡習(xí)。
?
reference:
http://stackoverflow.com/questions/5642367/extra-qualification-error-in-c
轉(zhuǎn)載于:https://www.cnblogs.com/foohack/p/4039855.html
總結(jié)
以上是生活随笔為你收集整理的g++ error: extra qualification on member [-fpermissive]的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 商汤自曝近况:明年或IPO、无人车大单、
- 下一篇: 厦门大学考研真题笔记:703新闻学与传播