【发布时间】:2013-09-25 05:12:57
【问题描述】:
#include <stdio.h>
#include <stdlib.h>
struct NODE {
char* name;
int val;
struct NODE* next;
};
typedef struct NODE Node;
Node *head, *tail;
head = (Node*) malloc( sizeof( Node ) ); //line 21
我是这样编译的:
cc -g -c -o file.tab.o file.tab.c
我收到此错误消息:
file.y:21:1 warning: data definition has no type or storage class [enabled by default]
【问题讨论】:
标签: c pointers struct bison cc