Skip to content

Instantly share code, notes, and snippets.

@parsa
Created September 18, 2017 18:39
Show Gist options
  • Select an option

  • Save parsa/ab23d7fb1717dc1eb38fd831cff7db16 to your computer and use it in GitHub Desktop.

Select an option

Save parsa/ab23d7fb1717dc1eb38fd831cff7db16 to your computer and use it in GitHub Desktop.

You can display the full search paths with

g++ -print-search-dirs

or you can find a specific header without writing a source file with something along the lines of

echo '#include <vector>' | g++ -x c++ -E - | grep '/vector"'

Source: https://stackoverflow.com/a/21110958

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment