简体   繁体   English

错误C2146:语法错误:缺少';' 在标识符之前

[英]Error C2146: syntax error : missing ';' before identifier

The line in question is: 有问题的行是:

extern BOOL logged_in; extern BOOL登录_;

Here are my includes: 这是我的包括:

#define _WIN32_WINNT    0x0403              // Very important for critical sections.
#define WIN32_LEAN_AND_MEAN                 // Good to use.
#pragma optimize("gsy", on)                 // Global optimization, Short sequences, Frame pointers.
#pragma comment(linker, "/RELEASE")         // Release code
#pragma comment(linker, "/opt:nowin98")
#pragma comment(linker, "/ALIGN:4096")      // This will save you some size on the executable.
#pragma comment(linker, "/IGNORE:4108 ")    // This is only here for when you use /ALIGN:4096.
#pragma comment(linker, "/ALIGN:4096")      // This will save you some size on the executable.

//default headers
#include <windows.h>
#include <stdio.h>
#include <string.h>
#include <winsock2.h>
#include <time.h>
#include <stdlib.h>
#include <Winsvc.h>
#include <winuser.h> 
#include <tlhelp32.h>
#include <tchar.h>
#include <shlobj.h>
#include <shlwapi.h>
#include <shellapi.h>
#include <commctrl.h>

#pragma comment(lib, "ws2_32.lib") 
#pragma comment(lib, "urlmon.lib") 
#pragma comment(lib, "shlwapi.lib")
#pragma comment(lib, "shell32.lib")

Any ideas? 有任何想法吗?

I don't see the line in the above code, but "missing ';' 我没有在上面的代码中看到该行,而是“缺少';' before identifier" means that you are missing a semicolon before that line. 标识符之前”表示您在该行之前缺少分号。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误C2146:语法错误:缺少&#39;;&#39; 在标识符之前 - error C2146: syntax error : missing ';' before identifier 错误C2146:语法错误:在标识符&#39;A1&#39;之前缺少&#39;,&#39; - Error C2146: syntax error : missing ',' before identifier 'A1' 错误C2146:语法错误:缺少&#39;;&#39; 在标识符&#39;ContextRecord&#39;之前 - error C2146: syntax error : missing ';' before identifier 'ContextRecord' 模板Fn指针错误C2146:语法错误:缺少&#39;;&#39; 在标识符之前 - Template Fn Pointer error C2146: syntax error : missing ';' before identifier 错误C2146:语法错误:在按功能传递地图时,在标识符mType之前缺少',' - error C2146: syntax error : missing ',' before identifier mType when passing a map by function C ++错误1错误C2146:语法错误:缺少&#39;;&#39; 在标识符“记录”之前 - C++ Error 1 error C2146: syntax error: missing ';' before identifier 'records' 错误C2146:语法错误:缺少&#39;;&#39; 在标识符&#39;m_ball&#39;C ++之前 - error C2146: syntax error : missing ';' before identifier 'm_ball' C++, MFC VC ++错误C2146:语法错误:标识符&#39;pFirst&#39;之前缺少&#39;)&#39; - VC++ error C2146: syntax error : missing ')' before identifier 'pFirst' 错误C2146:语法错误:缺少&#39;;&#39; 在标识符“ g_App”之前 - error C2146: syntax error : missing ';' before identifier 'g_App' 错误C2146的可能原因:语法错误:缺少';'在标识符之前 - Possible reason for error C2146: syntax error : missing ';' before identifier
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM