2 ms·
> If there are any unresolvable ambiquieties then ask me. what if there is no ambiguity, only a single wrong answer, and now it "works" but you include the wro
by jcelerier 7y ago
> If there are any unresolvable ambiquieties then ask me.
what if there is no ambiguity, only a single wrong answer, and now it "works" but you include the wrong thing ?
> - As a developer if I use for example std::thread why do I need to add manually -pthread to my build / linker flags. Why can't the build system do this for me?
because adding -pthread and -lpthread have different semantics (-pthread defines _REENTRANT which may change things - grep your /usr/include for that ;p) and you may want one or the other regardless of whether you use std::thread.
> - As a developer if I use let's say Win32 API in my code why do I have to manually add the linker libs and flags. Why can't the build system do this for me?
which linker libs ? on my computer I must have 5 version of those right now, not counting UWP and various MinGW versions. Also sometimes I want the debug standard library and sometimes not.
> - As a developer if I use c++14 features in my code, why do I need to manually add the -std=c++14 whatever flag in my build files? Why can't the build system do this for me?
determining if you are using C++14 features sounds like a corollary of the halting problem