build
Recursive CMake search for header and source files
You’re probably missing one or more include_directories calls. Adding headers to the list of files in the add_executable call doesn’t actually add then to the compiler’s search path – it’s a convenience feature whereby they are only added to the project’s folder structure in IDEs. So, in your root, say you have /my_lib/foo.h, and you … Read more
Docker build has no network, but docker run has
Check what networks are available on your host with the below command: docker network ls then pick one that you know is working, the host one could be a good candidate. Now assuming you are in the directory where it is available your Dokerfile, build your image appending the flag –networks and change the <image-name> … Read more
How can I build in release in Visual Studio 2010 (C# Express)?
If you have no Build Menu in Visual Studio 2010 Express, go to the menu Tools -> Settings -> select ‘Expert Settings’
Is there something in the ninja language that makes it faster than make?
In short, Ninja parses faster, and has built-in features that reduce the amount to parse. From the philosophical overview in the ninja manual: Where other build systems are high-level languages, Ninja aims to be an assembler. Ninja files are often “compiled” from other makefiles, making it a two-step process whereas Make is a single step. … Read more
fatal error U1087: cannot have : and :: dependents for same target
Tthe solution to this problem is to ensure that there are no spaces in the build directory.
Visual Studio: debug information in release build
The size of the executable should increase much less than 25%. I’m actually a little surprised that it increases much at all, but some quick tests show that at least one large example project (ScummVM) increases the .exe from 10,205,184 bytes to 10,996,224 bytes just by adding the /DEBUG option to the link step (about … Read more