作者共发了5篇帖子。
字体大小:较小 - 100% (默认)  内容转换:不转换
 
点击 回复
165 4
libray_api.so
巨大八爪鱼
武林盟主 二十一级
回复
1楼 发表于:2026-5-20 15:12
C:\Users\qwert2180\AppData\Local\Programs\Python\Python310\Lib\site-packages\ray\cpp\lib\libray_api.so
巨大八爪鱼
武林盟主 二十一级
回复
2楼 发表于:2026-5-20 15:13

libray和library这个单词只相差一个字母。

巨大八爪鱼
武林盟主 二十一级
回复
3楼 发表于:2026-5-25 10:27
oct1158@DESKTOP-UCV8LC8 /cygdrive/d/Code/C++/Ray/first
$ file C:/Users/qwert2180/AppData/Local/Programs/Python/Python310/Lib/site-packages/ray/cpp/lib/libray_api.so
C:/Users/qwert2180/AppData/Local/Programs/Python/Python310/Lib/site-packages/ray/cpp/lib/libray_api.so: PE32+ executable for MS Windows 6.00 (DLL), x86-64, 6 sections

oct1158@DESKTOP-UCV8LC8 /cygdrive/d/Code/C++/Ray/first
$ file C:/cygwin64/lib/p11-kit-proxy.so
C:/cygwin64/lib/p11-kit-proxy.so: symbolic link to ../bin/cygp11-kit-0.dll

oct1158@DESKTOP-UCV8LC8 /cygdrive/d/Code/C++/Ray/first
$ file C:/cygwin64/bin/cygp11-kit-0.dll
C:/cygwin64/bin/cygp11-kit-0.dll: PE32+ executable for MS Windows 5.02 (DLL), x86-64, 11 sections

oct1158@DESKTOP-UCV8LC8 /cygdrive/d/Code/C++/Ray/first
$


这说明,libray_api.so就是一个dll文件(仅支持Vista以上系统)。

巨大八爪鱼
武林盟主 二十一级
回复
4楼 发表于:2026-5-25 15:39

Undefined reference to `ray::Init()’

https://discuss.ray.io/t/undefined-reference-to-ray-init/23554/2


Ray’s C++ API is not supported on Windows (including Cygwin), which is the root cause of your build and runtime errors. The official documentation and codebase state that the C++ API is experimental and only supported on Linux. Attempting to use it on Windows (even via Cygwin) will result in linker errors and segmentation faults, as you observed (source, source).

If you need to use Ray’s C++ API, you must use a Linux environment (native or via WSL2). There is no workaround for Windows at this time. Would you like more detail on setting up Ray C++ on Linux?

Sources:

https://github.com/ray-project/ray/blob/master/python/ray/scripts/scripts.py
https://discuss.ray.io/t/c-api-running-example-and-cluster-mode-test-segfaults-on-mac-os/1665

Hint: Mention @RunLLM in the post for followups.

巨大八爪鱼
武林盟主 二十一级
回复
5楼 发表于:2026-5-25 15:40
很遗憾,Ray C++不支持Windows操作系统。
回复帖子
内容:
用户名: 您目前是匿名发表。
验证码:
看不清?换一张
(快捷键:Ctrl+Enter)
本帖信息
点击数:165 回复数:4
作者:巨大八爪鱼
最后回复:巨大八爪鱼
最后回复时间:2026-5-25 15:40
公告板