This command should work:
g++ -Wall $(pkg-config --cflags --libs nix) test.cpp -o test
But we are missing the include flags for e.g. boost and the c++11 flag.
Ok, actually having thought about this a bit more and with some discussions in #gnome-hackers I think we just need to have it documented as a requirement for clients of NIX. Closing.
This command should work:
g++ -Wall $(pkg-config --cflags --libs nix) test.cpp -o test
But we are missing the include flags for e.g. boost and the c++11 flag.