C 功能';马洛克';无法解决

C 功能';马洛克';无法解决,c,eclipse,malloc,C,Eclipse,Malloc,每次我在eclipse中键入malloc时,它都会说它无法解析。我已经包括了 有什么问题?我的Windows 8.1 64位上有GCC和Cygwin。eclipse无法识别malloc #include<stdio.h> #include<stdlib.h> struct node{ int data; struct node *next; }; void insertbeg(struct n

每次我在eclipse中键入malloc时,它都会说它无法解析。我已经包括了

有什么问题?我的Windows 8.1 64位上有GCC和Cygwin。eclipse无法识别malloc

    #include<stdio.h>
    #include<stdlib.h>

    struct node{
         int data;
         struct node *next;
    };

    void insertbeg(struct node **href, int n){
         struct node *new_node = (struct node*)malloc(sizeof(struct node)); 
    }
#包括
#包括
结构节点{
int数据;
结构节点*下一步;
};
void insertbeg(结构节点**href,int n){
结构节点*新节点=(结构节点*)malloc(sizeof(结构节点));
}

#include Eclipse知道在哪里搜索stdlib.h?或者,如果没有获取包含文件,您可以将代码片段粘贴到此处,但不能找到错误。请粘贴您的程序和看到的错误。欢迎使用堆栈溢出。请尽快阅读和页面,但更重要的是,请阅读如何创建MCVE()。请注意,不回应澄清请求可能会导致以下后果:在接下来的半小时内你无法集中注意力时,不要提问。