C++ 未定义对“\u endthreadex”的引用

C++ 未定义对“\u endthreadex”的引用,c++,sqlite,C++,Sqlite,我正在尝试为游戏构建一些源代码,但遇到以下错误: LINK crawl.exe contrib/install/x86_64-pc-cygwin/lib/libsqlite3.a(sqlite3.o):sqlite3.c:(.text+0x4c56): undefined reference to `_endthreadex' contrib/install/x86_64-pc-cygwin/lib/libsqlite3.a(sqlite3.o):sqlite3.c:(.text+0x4c56)

我正在尝试为游戏构建一些源代码,但遇到以下错误:

LINK crawl.exe
contrib/install/x86_64-pc-cygwin/lib/libsqlite3.a(sqlite3.o):sqlite3.c:(.text+0x4c56): undefined reference to `_endthreadex'
contrib/install/x86_64-pc-cygwin/lib/libsqlite3.a(sqlite3.o):sqlite3.c:(.text+0x4c56): relocation truncated to fit: R_X86_64_PC32 against undefined     symbol `_endthreadex'
contrib/install/x86_64-pc-cygwin/lib/libsqlite3.a(sqlite3.o):sqlite3.c:(.text+0x806d): undefined reference to `_beginthreadex'
contrib/install/x86_64-pc-cygwin/lib/libsqlite3.a(sqlite3.o):sqlite3.c:(.text+0x806d): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_beginthreadex'
collect2: error: ld returned 1 exit status
    Makefile:1508: recipe for target 'crawl.exe' failed
    make: *** [crawl.exe] Error 1

我正在Windows 8上使用Cygwin

Cygwin不是编译器。看起来您缺少一个库。这里也报告了此问题:似乎没有正确编译SQLite,cygwinI通过在sqlite3.c文件中将threadsafe宏设置为0来生成代码,但不幸的是,该程序实际上断言threadsafe必须为1才能运行,因此它立即崩溃。除了等待sqlite或cygwin更新之外,还有什么要做的吗?我不知道是否还有其他解决方案,但sqlite和cygwin都是开源的,所以如果您找不到其他解决方案并且不想等待,您可以尝试自己重新构建/修复它。