Find headers required by a cpp file
In order to find out which headers each .cpp file requires, perform a g++ -MM file.cpp. This lists out the dependencies for converting file.cpp into an objec...
In order to find out which headers each .cpp file requires, perform a g++ -MM file.cpp. This lists out the dependencies for converting file.cpp into an objec...
man ldd. ldd prints shared library dependencies. Useful for checking if you got the order of your arguments wrong while invoking g++.