4/3/2023 0 Comments Xcode compile c++![]() cpp file as Objective C++, but yet being able to use the header for logging say NSString values from a. cpp extension is "necessary/ appropriate".Īssuming that using Boost or another library is not an option, how can this situation be rectified - not having to compile a. mm (Objective C++), but to keep it portable the. ![]() cpp file have Objective C code (by including this header) and compile as. Everything else in the header is "pure" C++.Īny C++ source file that uses logging includes this header and to be able to compile in XCode the file settings specify "compile as Objective C++" although the file extension is. It has a few functions within #ifdef/#endif block that use NSString and few other Cocoa classes for UI based projects that use Cocoa. Intel C++ Composer XE 2011 up to Update 5 (compiler 12.0) November 7, 2010: Cilk Plus language extensions, Guided Auto-Parallelism, Improved C++11 support. Just has a class that implements static functions for "standard" logging requirements in a typical project. Intel oneAPI DPC++/C++ Compiler and Intel C++ Compiler Classic (deprecated icl. Given a header only C++ source file that implements logging mostly using standard C++11 so that it is portable and works on both Mac and Windows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |