Secondary development of CAD, size_t redefinition error

Secondary development of CAD, size_t redefinition error

1196756854
Explorer Explorer
191 Views
0 Replies
Message 1 of 1

Secondary development of CAD, size_t redefinition error

1196756854
Explorer
Explorer

使用visual studio2019+ObjectARX2021+AutoCAD2021进行的环境开发,选择项目模版为“ARX/DBX Project For AutoCAD 2021”,点击创建,选择MFC support选项为Extension DLL using MFC Shared DLL,点击Finish,在acrxEntryPoint.cpp界面下点击“本地Windows调试器”,然后出现C2371“size_t”:重定义;不同的基类型错误和C1189错误,不知道是怎么回事,应该怎么解决呢?(已在属性页将C/C++/代码生成/较小类型检查设置为否)。

The development environment uses Visual Studio 2019 + ObjectARX 2021 + AutoCAD 2021. The project template selected is "ARX/DBX Project For AutoCAD 2021". After clicking Create, the MFC support option is set to Extension DLL using MFC Shared DLL, and then Finish is clicked. In the acrxEntryPoint.cpp interface, when clicking on the "Local Windows Debugger", a C2371 "size_t": size_t redefinition error with different basic type and a C1189 error appear. I'm not sure what's wrong and how to fix it. (In the property page, the C/C++ > Code Generation > Type Check for Smaller Types has been set to No).

1.png

 

2.png

 

0 Likes
192 Views
0 Replies
Replies (0)