我正在尝试使用c构建链接列表,但不断获取未知类型名称:

时间:2014-02-16 16:38:42

标签: c

#ifndef DATABASE_H_
#define DATABASE_H_

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

typedef struct TreeDataBase{
    tree_Node* root;
}tree_DB;

typedef struct tTreeNode {
    char *name;
    int tableSize;
    hash_entry** tableArray;

    tree_Node* right;
    tree_Node* left;

}tree_Node;


// hash table
//entry:
typedef struct entry_s{
    char key;
    char *value;
    hash_entry* next;

} hash_entry;
#endif

这包含在database.h文件中 当我尝试编译它时,我得到了这些错误:

Description Resource    Path    Location    Type
unknown type name 'tree_Node'   database.h  /storage/src    line 26 C/C++    Problem
unknown type name 'tree_Node'   database.h  /storage/src    line 27 C/C++ Problem
unknown type name 'tree_Node'   database.h  /storage/src    line 18 C/C++ Problem
unknown type name 'hash_entry'  database.h  /storage/src    line 24 C/C++ P roblem
unknown type name 'hash_entry'  database.h  /storage/src    line 37 C/C++ Problem

0 个答案:

没有答案