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

windows 平台不支持 release 编译? #107

Closed
endink opened this issue Aug 30, 2023 · 7 comments
Closed

windows 平台不支持 release 编译? #107

endink opened this issue Aug 30, 2023 · 7 comments
Assignees

Comments

@endink
Copy link

endink commented Aug 30, 2023

运行如下命令:

cmake -DCMAKE_BUILD_TYPE=Release .. -G "Visual Studio 17 2022" -DBUILD_SHARED_LIBS=0 -DCMAKE_CXX_FLAGS="/utf-8"
cmake --build . --config Release

出现错误:

error MSB6006: “CL.exe”已退出,代码为 -1073740791。 [F:\Works\WeTextProcessing\runtime\build\processor\processor.vcxproj]

如果 build 时候使用DEBUG:

cmake --build .

可以编译通过

@xingchensong
Copy link
Member

东哥休假了,休假回来看看

@endink
Copy link
Author

endink commented Sep 21, 2023

??还会维护吗

@pengzhendong
Copy link
Member

??还会维护吗

会,周末看看。平时没有 windows 环境。

@pengzhendong
Copy link
Member

已复现,尚未定位问题。

@pengzhendong
Copy link
Member

初步定位是调用 fst::ShortPath 导致的编译错误。

@endink
Copy link
Author

endink commented May 25, 2024

很久了,请问是否已经被修复?

@pengzhendong
Copy link
Member

很久了,请问是否已经被修复?

代码没有问题,更新至最新版本 msvc 即可。

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

3 participants