简体   繁体   中英

importing iOS-QR-Code-Generator files in an objective-c project : c++ classes dont compile

We tried to import in our project the code to generate QRCode iOS-QR-Code-Generator from Kuapay Although we linked correctly the libpng folder (the #include is found), we have errors on compilation of the qr_ classes the eror is as follow for by example QR_Encode.h the class keyword is nor recognized, it seems the project doesn't recognize the file as a c++ file, being an objective-c project Anyone could help us? Many thanks in advance

If the header file contains C++ classes, you'll need to compile the file #include ing it as C++ or Objective-C++. If you have a .m file including it, the easiest way to do this is to change the extension to .mm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM