в .h:Ошибка: неполный тип не допускается
typedef struct token_t TOKEN;
в .c:
#include "token.h"
struct token_t
{
char* start;
int length;
int type;
};
в main.c:
#include "token.h"
int main()
{
TOKEN* tokens; // here: ok
TOKEN token; // here: Error: incomplete type is not allowed
// ...
}
Ошибка, которую я получаю на последней строке:
Error: incomplete type is not allowed
Что случилось?
выкладывают аргументы, с которыми вы компилируете – danish