Include header file in different directory in c++

前端 未结 3 1241
谎友^
谎友^ 2021-01-17 18:37

I\'ve been learning c++ and encountered the following question: I have a directory structure like:

 - current directory

  - Makefile

  - include

     - he         


        
3条回答
  •  再見小時候
    2021-01-17 19:03

    Perhaps change your include line:

    #include "include/header.h"
    

    Assuming that's where your header exists - I'm making that assumption from your makefile

提交回复
热议问题