Posts tagged with g

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...