目前共有5篇帖子。
字體大小:較小 - 100% (默認)  內容轉換:不轉換
 
點擊 回復
163 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)
本帖信息
點擊數:163 回複數:4
作者:巨大八爪鱼
最後回覆:巨大八爪鱼
最後回復時間:2026-5-25 15:40
公告板