在eclipse.h文件中,无法识别其他.h文件中写入的结构

在eclipse.h文件中,无法识别其他.h文件中写入的结构,c,eclipse,struct,C,Eclipse,Struct,在TCB.h中我声明了一个结构,在q.h中我调用了TCB结构并为其分配了内存。我包括了TCB.h。然而,在q.h中,它无法识别我的结构 TCB.h q、 h 您到底遇到了什么错误?无法解决字段“下一步”您的代码看起来正常,请尝试清理您的项目,然后再次运行生成INI deleted q.h并立即重新创建文件。create_list函数在头文件中做什么?你在评论中是指q.c吗? struct TCB_t { struct TCB_t * next; struct TCB_t * pr

在TCB.h中我声明了一个结构,在q.h中我调用了TCB结构并为其分配了内存。我包括了TCB.h。然而,在q.h中,它无法识别我的结构

TCB.h

q、 h


您到底遇到了什么错误?无法解决字段“下一步”您的代码看起来正常,请尝试清理您的项目,然后再次运行生成INI deleted q.h并立即重新创建文件。create_list函数在头文件中做什么?你在评论中是指q.c吗?
struct TCB_t
{
    struct TCB_t * next;
    struct TCB_t * previous;
    ucontext_t context;
    int val;
};
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#include "TCB.h"


struct TCB_t *queue = NULL;

void create_list()
{
    queue =  (struct TCB_t*)malloc(sizeof(struct TCB_t));
    queue->next;  //this is where I am getting the error
}