gpt4 book ai didi

c++ - 错误 C2146 : syntax error : missing ';' before identifier

转载 作者:行者123 更新时间:2023-11-28 08:28:10 25 4
gpt4 key购买 nike

有问题的行是:

extern BOOL logged_in;

这是我的包括:

#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")

有什么想法吗?

最佳答案

我没有在上面的代码中看到这一行,但是“在标识符之前缺少‘;’”意味着你在该行之前缺少一个分号。

关于c++ - 错误 C2146 : syntax error : missing ';' before identifier,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3221729/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com