开发者

Error C2146: syntax error : missing ';' before identifier

开发者 https://www.devze.com 2023-01-07 04:29 出处:网络
The line in question is: extern BOOL logged_in; Here are my includes: #define _WIN32_WINNT0x0403// Very important for critical sections.

The line in question is:

extern BOOL logged_in;

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 wil开发者_C百科l 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消