bug#32773: clang: missing default include paths for C++

2018-10-08 Thread fis trivial
Tim Gesthuizen writes: > On 19.09.2018 20:33, Pjotr Prins wrote: >> Hi Tim, >> >> I am not sure this helps but in a project I have I use >> >> CPPFLAGS= -std=c++11 >> >> and >> >> CPPFLAGS += -I$(GUIX)/include/c++ >> -I$(GUIX)/include/c++/x86_64-unknown-linux-gnu >> >> to find include files

bug#32773: clang: missing default include paths for C++

2018-09-23 Thread Tim Gesthuizen
On 22.09.2018 02:58, Robin Templeton wrote: > Hi Tim, > > Tim Gesthuizen writes: > >> As you can see from the output, clang is missing some include paths that >> gcc has. Specifying a custom `CPLUS_INCLUDE_PATH' fixes the problem: >> >> ┌ >> │ >> CPLUS_INCLUDE_PATH=$HOME/.guix-profile/includ

bug#32773: clang: missing default include paths for C++

2018-09-21 Thread Robin Templeton
Hi Tim, Tim Gesthuizen writes: > As you can see from the output, clang is missing some include paths that > gcc has. Specifying a custom `CPLUS_INCLUDE_PATH' fixes the problem: > > ┌ > │ > CPLUS_INCLUDE_PATH=$HOME/.guix-profile/include/c++:$HOME/.guix-profile/include/c++/x86_64-unknown-linux

bug#32773: clang: missing default include paths for C++

2018-09-19 Thread Tim Gesthuizen
On 19.09.2018 20:33, Pjotr Prins wrote: > Hi Tim, > > I am not sure this helps but in a project I have I use > > CPPFLAGS= -std=c++11 > > and > > CPPFLAGS += -I$(GUIX)/include/c++ > -I$(GUIX)/include/c++/x86_64-unknown-linux-gnu > > to find include files in Guix context with clang. Wher

bug#32773: clang: missing default include paths for C++

2018-09-19 Thread Pjotr Prins
Hi Tim, I am not sure this helps but in a project I have I use CPPFLAGS= -std=c++11 and CPPFLAGS += -I$(GUIX)/include/c++ -I$(GUIX)/include/c++/x86_64-unknown-linux-gnu to find include files in Guix context with clang. Where $(GUIX) is the profile. Similar to yours. Glad to hear of a b

bug#32773: clang: missing default include paths for C++

2018-09-19 Thread Tim Gesthuizen
Hi, I noticed the following bug in clang when installed through guix: Compiling C++ programs does not work because the include path is not set correctly. I will use the following test program for compling: ┌ │ #include │ │ int │ main() │ { │ std::cout << "Hello, World\n"; │ } └ When