Fixing #includes <> for GCC (Code::Blocks)

前端 未结 4 751
半阙折子戏
半阙折子戏 2021-01-13 17:58

I am working with some code that was written for a different compiler/linker, and it is including files like this:

#include 
         


        
4条回答
  •  说谎
    说谎 (楼主)
    2021-01-13 18:33

    I'm not quite sure if I understand your explanation, what do you mean with "from the root of the project". But well...

    When you use the #include directive with <> what your are telling the compiler is to look for the the file on the Directories you include with -I option.

    In code blocks go to Project->Build Options->Search Directories->Compiler

    And add the folder path to the folder containing "Engine".

    You can find more info here http://msdn.microsoft.com/en-us/library/36k2cdd4(v=vs.71).aspx

    Edit: Before trying anything, try #include "path/somefile.h" instead of #include

提交回复
热议问题