二分探索ツリーのヘッダー ファイルを作成していますが、Visual Studio 2012 コンパイラーをコンパイルすると、stdbool.h ヘッダーが認識されません。次のエラーが発生しました。
error C1083: Cannot open include file: 'stdbool.h': No such file or directory
なぜこのエラーが発生するのですか?
コード ブロック コンパイラで試してみましたが、同じエラーが発生しました。以下にファイルを投稿します。
/二分探索木のヘッダファイル/
#include <stdio.h>
#include <stdbool.h>
// Structure Declarations
typedef struct
{
void* dataPtr;
struct node* left;
struct node* right;
}NODE;
typedef struct
{
int count;
int (*compare) (void* argu1, void* argu2);
NODE* root;
}BST_TREE;
// Prototype declarations
BST_TREE* BST_Create
(int (*compare) (void* argu1, void* agu2));
BST_TREE* BST_Destroy (BST_TREE* tree);
bool BST_Insert (BST_TREE* tree, void* dataPtr);
bool BST_Delete (BST_TREE* tree, void* dltKey);
void* BST_Retrieve (BST_TREE* tree, void* dataPtr);
void* BST_Traverse (BST_TREE* tree,
void (*process) (void* dataPtr));
bool BST_Empty (BST_TREE* tree);
bool BST_Full (BST_TREE* tree);
int BST_Count (BST_TREE* tree);
static NODE* _insert
(BST_TREE* tree, NODE* root,
NODE* newPtr);
static NODE* _delete
(BST_TREE* tree, NODE* root,
void* dataPtr, bool* success);
static NODE* _retrieve
(BST_TREE* tree,
void* dataPtr, NODE* root);
static NODE* _traverse
(NODE* root,
void (*process) (void* dataPtr));
static NODE* _destroy ( NODE* root);