Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

用VS2017 的x86的命令行下运行scons ,出错size_t的重定义问题! #889

Open
sgnah opened this issue Aug 2, 2024 · 0 comments

Comments

@sgnah
Copy link

sgnah commented Aug 2, 2024

scons: done reading SConscript files.
scons: Building targets ...
cl /Fo3rd\gpinyin\src\dictlist.obj /c 3rd\gpinyin\src\dictlist.cpp /TP -DWIN32 -D_WIN32 -DWINDOWS /EHsc -D_CONSOLE /FS /Z7 /utf-8 -DWITH_64BIT_CPU -D_WIN64 -DHAVE_LIBC -DSDL_REAL_API -DSDL_HAPTIC_DISABLED -DSDL_SENSOR_DISABLED -DSDL_JOYSTICK_DISABLED -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -D_HAS_EXCEPTIONS=0 -D_HAS_ITERATOR_DEBUGGING=0 -D_ITERATOR_DEBUG_LEVEL=0 -D_SCL_SECURE=0-D_SECURE_SCL=0 -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -DTK_ROOT=""D:\\giteehub\\awtk"" -DWITH_STATE_ACTIVATED=1 -DWITH_MBEDTLS=1 -DENABLE_CURSOR=1 -DWITH_TEXT_BIDI=1 -DWITH_DATA_READER_WRITER=1 -DWITH_EVENT_RECORDER_PLAYER=1 -DWITH_ASSET_LOADER -DWITH_FS_RES -DWITH_ASSET_LOADER_ZIP -DSTBTT_STATIC -DSTB_IMAGE_STATIC -DWITH_STB_IMAGE -DWITH_VGCANVAS -DWITH_UNICODE_BREAK -DWITH_DESKTOP_STYLE -DWITH_SDL -DHAS_STDIO -DHAVE_STDIO_H -DHAS_GET_TIME_US64 -DHAS_STD_MALLOC -DTK_MAX_MEM_BLOCK_NR=3 -DWITH_RES_TOOLS -DWITH_MAIN_LOOP_CONSOLE=1 -DWITH_IME_PINYIN -DWITH_GPU -DWITH_VGCANVAS_LCD -DWITH_STB_FONT -DWITH_NANOVG_GL3 -DWITH_NANOVG_GL -DWITH_NANOVG_GPU /MDd -D_DEBUG -DDEBUG /DEBUG /Od /I. /Isrc /I3rd /Isrc\ext_widgets /Isrc\custom_widgets /I3rd\fribidi /I3rd\mbedtls\include /I3rd\mbedtls\3rdparty\everest\include /I3rd\pixman /I3rd\cairo /I3rd\bgfx\bgfx\include /I3rd\bgfx\bx\include /I3rd\bgfx\bimg\include /I3rd\agge /I3rd\agg\include /I3rd\SDL\src /I3rd\SDL\include /I3rd\agge\src /I3rd\agge\include /I3rd\gpinyin\include /I3rd\libunibreak /I3rd\gtest\googletest /I3rd\gtest\googletest\include /Itools /I3rd\nanovg /I3rd\nanovg\gl /I3rd\nanovg\base /I3rd\nanovg\agge /I3rd\nanovg\bgfx /Ires
用于 x86 的 Microsoft (R) C/C++ 优化编译器 19.10.25017 版
版权所有(C) Microsoft Corporation。保留所有权利。

dictlist.cpp
D:\tools\Visual Studio 2017 Enterprise\VC\Tools\MSVC\14.10.25017\include\vcruntime.h(194): error C2371: “size_t”: 重定义;不同的基类型
predefined C++ types (compiler internal)(16): note: 参见“size_t”的声明
scons: *** [3rd\gpinyin\src\dictlist.obj] Error 2
scons: building terminated because of errors.

D:\giteehub\awtk>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant