UBUNTU C ++ compiler does not find header files
1 answer
g++ -I. *.cpp
This tells the compiler that it finds the header files in the current directory, not just the default directories (/ usr / include and / include).
I suggest you use GNU Make to compile this trivial example. Standard rules will work for you.
make file.cpp main.cpp
Perhaps if you have the same problem (.h file not found) you can set CXXFLAGS = -I.
+1
source to share