
目前共有5篇帖子。
![]() |
C:\Users\qwert2180\AppData\Local\Programs\Python\Python310\Lib\site-packages\ray\cpp\lib\libray_api.so ![]() |
![]() |
libray和library这个单词只相差一个字母。 |
![]() |
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以上系统)。 |
![]() |
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.pyhttps://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. |
![]() |
很遗憾,Ray C++不支持Windows操作系统。
|