How to tell g++ compiler where to search for include files?

后端 未结 4 1722
难免孤独
难免孤独 2020-12-01 23:38

In a \"working directory\" I have a lot of *.cpp and *.h files that #include each other and files from subdirectories.

For example:

#inc         


        
4条回答
  •  时光取名叫无心
    2020-12-02 00:11

    For gcc it is the -I option for header includes. For the .cpp files you just need those to appear as an argument to the gcc command.

提交回复
热议问题