Warum bin ich immer diese Fehlermeldung: "Datendefinition hat keinen Typ oder Speicherklasse"?

#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

Und ich kompilieren wie diese:

cc -g -c -o file.tab.o file.tab.c

Ich bin immer diese Fehlermeldung:

file.y:21:1 warning: data definition has no type or storage class [enabled by default]

InformationsquelleAutor Daivid | 2013-09-19

Schreibe einen Kommentar