Handling stdafx.h in cross-platform code

You’re best off using precompiled headers still for fastest compilation. You can use precompiled headers in gcc as well. See here. The compiled precompiled header will have an extension appended as .gch instead of .pch. So for example if you precompile stdafx.h you will have a precompiled header that will be automatically searched for called … Read more

Are C++ applications cross-platform?

Source code compatible. If I compile the source code, will it run everywhere? API/ABI compatibility. Does the OS provide the interface to its components in a way that the code will understand? Binary compatibility. Is the code capable of running on the target host? Source code compatible C++ is a standard which defines how structures, … Read more

Why does Qt use its own make tool, qmake?

Qt uses qmake to transparently support Qt’s various addons, including “moc, the meta-object compiler” (which provides signals & slots), “uic, the ui compiler” (which creates header files from .ui designer files), “rcc, the resource compiler” (which compiles resources). There’s nothing to stop you using any build system you want. however, it’s a lot more work. … Read more

Where is Boost.Process?

Boost.Process was accepted for inclusion into Boost on November 9, 2016; and has been included in the 1.64 released on April 19, 2017. Boost.Process is now an official Boost library! It’s documentation is available here: http://www.boost.org/doc/libs/1_64_0/doc/html/process.html For the record, the sources that were reviewed from October 27, 2016 through November 5, 2016 are available on … Read more

What is the cross-platform way of obtaining the path to the local application data directory?

You could probably say something like (contradict me if I am wrong, or if this a bad approach) private String workingDirectory; //here, we assign the name of the OS, according to Java, to a variable… private String OS = (System.getProperty(“os.name”)).toUpperCase(); //to determine what the workingDirectory is. //if it is some version of Windows if (OS.contains(“WIN”)) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)