Codeblocks can't find header files

后端 未结 3 679
醉话见心
醉话见心 2020-12-09 07:08

So a few hours ago I started learning c++ in codelite but I was getting frustated with, so I just got codeblocks and imported the project. But now whenever I try to compile

3条回答
  •  天命终不由人
    2020-12-09 07:45

    You have to tell Codeblocks where to find the header files that you include. Try adding the full path to your '/Headers' in the include directories of codeblocks

    Goto 'Codeblocks menu > Settings > Compiler > Search directories > Add'.

    EDIT: Since your issue, however, is quite irrelevant to learning the C++ language itself, I suggest that you start with simpler programs, then move on to more complex ones. That, of course, unless you have previous experience with other programming languages

提交回复
热议问题