カスタム ヘッダー ファイル ( "strings.h"
)があります。
#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif /* __cplusplus */
#include "sdkGlobal.h"
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
#if !defined administration_H_
#define administration_H_
#define POS_STR_TITLE_OPERATIONS "somestr"
#endif
私が持っているソースファイルの1つに:
#include "../inc/strings.h"
私が使用するときのコードで:
sdkShow (LINE3, 0, POS_STR_TITLE_OPERATIONS );
エラーが発生します:
src/main.c: In function 'postMainMenu':
src/main.c:190: error: 'POS_STR_TITLE_OPERATIONS ' undeclared (first use in this function)
src/main.c:190: error: (Each undeclared identifier is reported only once
src/main.c:190: error: for each function it appears in.)
make[1]: *** [src/main.o] Error 1
make: *** [all] Error 2
理由はありますか?