“Unresolved inclusion” error with Eclipse CDT for C standard library headers

前端 未结 14 2281
甜味超标
甜味超标 2020-11-28 04:18

I set up CDT for eclipse and wrote a simple hello world C program:

#include 

int main(void){
    puts(\"Hello, world.\");
    return 0;
}
         


        
14条回答
  •  时光取名叫无心
    2020-11-28 05:13

    In ADT I did the following:

    1. right click on the project and select Properties
    2. expand C/C++ General and select Preprocessor Include Paths, Macros etc.
    3. select CDT User Setting Entries
    4. select Add... from the right hand menu
    5. In the Add Include Directory change Project Path to File System Path
    6. Browse to the directory that contains your include files
    7. stir and repeat as needed

提交回复
热议问题