[英]typedef definition not found
我不知道為什么以下代碼會給出編譯錯誤,就像找不到typedef定義一樣。 實際上,如果我添加“ typedef TCHAR my_tchar;”行, (已經在win32def.h中)在app.h中,編譯進行順利。
win32def.h
#ifndef win32def_h
#define win32def_h
#include <tchar.h>
typedef TCHAR my_tchar;
#endif
應用程序
#include "win32def.h"
int my_function(const my_tchar *filename, ....)
compilation error at line of my_function:
error C2143: syntax error : missing ')' before '*'
使用什么編譯器? 我不確定,但是請嘗試打開“將wchar_t作為內置類型處理”選項。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.