The author has 5 posts.
Font size: Small - 100% (Default)  Content converter: No conversion
 
Clicks Replies
164 4
libray_api.so
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 1 Posted at: 5/20/26 15:12
C:\Users\qwert2180\AppData\Local\Programs\Python\Python310\Lib\site-packages\ray\cpp\lib\libray_api.so
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 2 Posted at: 5/20/26 15:13

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

巨大八爪鱼
武林盟主 二十一级
Reply
Floor 3 Posted at: 5/25/26 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以上系统)。

巨大八爪鱼
武林盟主 二十一级
Reply
Floor 4 Posted at: 5/25/26 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.

巨大八爪鱼
武林盟主 二十一级
Reply
Floor 5 Posted at: 5/25/26 15:40
很遗憾,Ray C++不支持Windows操作系统。
Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
(Shortcut key: Ctrl+Enter)
Post Information
Clicks: 164 Replies: 4
Author: 巨大八爪鱼
Last reply: 巨大八爪鱼
Last reply time: 5/25/26 15:40
Announcements