# Cpp on Windows missing shared object

**URL:** <https://discuss.ray.io/t/cpp-on-windows-missing-shared-object/5424>\
**Category:** Ray Core\
**Created:** [March 16, 2022, 1:37pm UTC](https://discuss.ray.io/t/cpp-on-windows-missing-shared-object/5424 "2022-03-16T13:37:05Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ray\_rlw](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@Ray\_rlw](https://discuss.ray.io/u/Ray_rlw)\
**Post date:** [March 16, 2022, 1:37pm UTC](https://discuss.ray.io/t/cpp-on-windows-missing-shared-object/5424/1 "2022-03-16T13:37:05Z")

</div>

**How severe does this issue affect your experience of using Ray?**

- High: It blocks me to complete my task.

The ray-template is linux-based for the shared object. Is there a way to get shared object for the ray library? I ran pip -U ray[cpp] but no Windows version of the shared object.

Thanks

---

<div class="post-metadata">

**Author:** ![Ray\_rlw](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@Ray\_rlw](https://discuss.ray.io/u/Ray_rlw)\
**Post date:** [March 16, 2022, 2:42pm UTC](https://discuss.ray.io/t/cpp-on-windows-missing-shared-object/5424/2 "2022-03-16T14:42:54Z")

</div>

It this .so file that prevents successful link step. The code compiled fine. Is there a way to get or generate this “library\_api.so” file?

```auto
cc_library(
    name = "ray_api",
    srcs = [
        "thirdparty/lib/libray_api.so",
    ],
    hdrs = glob([
        "thirdparty/include/**/*.h",
        "thirdparty/include/**/*.hpp",
    ]),
    linkopts = ["-Wl,-rpath, ./"],
    strip_include_prefix = "thirdparty/include",
    visibility = ["//visibility:public"],
)

```

---

<div class="post-metadata">

**Author:** ![Mingwei](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/mingwei/32/997_2.png) [@Mingwei](https://discuss.ray.io/u/Mingwei)\
**Post date:** [March 16, 2022, 3:45pm UTC](https://discuss.ray.io/t/cpp-on-windows-missing-shared-object/5424/3 "2022-03-16T15:45:35Z")

</div>

I’m not sure Ray’s C++ API is supported on Windows yet. Will forward the question to folks more familiar with this.

---

<div class="post-metadata">

**Author:** ![Ray\_rlw](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@Ray\_rlw](https://discuss.ray.io/u/Ray_rlw)\
**Post date:** [March 16, 2022, 3:50pm UTC](https://discuss.ray.io/t/cpp-on-windows-missing-shared-object/5424/4 "2022-03-16T15:50:25Z")

</div>

Thanks. I would be glad to help in this in any way I can. We implemented a process on python ray and it works great on Windows. Due to integration issues looks like we might be forced to move it to CPP to avoid external dask processes killing rays processes.

---

<div class="post-metadata">

**Author:** ![GuyangSong](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/guyangsong/32/181_2.png) [@GuyangSong](https://discuss.ray.io/u/GuyangSong)\
**Post date:** [March 17, 2022, 5:46am UTC](https://discuss.ray.io/t/cpp-on-windows-missing-shared-object/5424/5 "2022-03-17T05:46:58Z")

</div>

It’s not supported on Windows yet. Can you use linux? Is your production environment also Windows?

---

<div class="post-metadata">

**Author:** ![Ray\_rlw](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@Ray\_rlw](https://discuss.ray.io/u/Ray_rlw)\
**Post date:** [March 17, 2022, 12:02pm UTC](https://discuss.ray.io/t/cpp-on-windows-missing-shared-object/5424/6 "2022-03-17T12:02:13Z")

</div>

If I could have switched to Linux I would have already. The ultimate target is Linux but that does not help now. However, the CPP build page does have instructions for building on Windows. If it’s not supported why provide build instructions? Here is the link to that [build page](https://docs.ray.io/en/master/ray-contribute/development.html#building-ray-on-windows-full).

---

<div class="post-metadata">

**Author:** ![GuyangSong](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/guyangsong/32/181_2.png) [@GuyangSong](https://discuss.ray.io/u/GuyangSong)\
**Post date:** [March 17, 2022, 12:17pm UTC](https://discuss.ray.io/t/cpp-on-windows-missing-shared-object/5424/7 "2022-03-17T12:17:14Z")

</div>

@Ray_rlw Sorry for the doc. I have created a PR to notice that. [[C++ API][Doc] Add doc and error log to notice C++ API is not supported on Windows by SongGuyang · Pull Request #23272 · ray-project/ray · GitHub](https://github.com/ray-project/ray/pull/23272)

But we should support Windows in future. We will discuss about this in slack.

---

<div class="post-metadata">

**Author:** ![Ray\_rlw](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@Ray\_rlw](https://discuss.ray.io/u/Ray_rlw)\
**Post date:** [March 17, 2022, 12:30pm UTC](https://discuss.ray.io/t/cpp-on-windows-missing-shared-object/5424/8 "2022-03-17T12:30:39Z")

</div>

Can I join your discussion in Slack?

---

<div class="post-metadata">

**Author:** ![GuyangSong](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/guyangsong/32/181_2.png) [@GuyangSong](https://discuss.ray.io/u/GuyangSong)\
**Post date:** [March 18, 2022, 2:26am UTC](https://discuss.ray.io/t/cpp-on-windows-missing-shared-object/5424/9 "2022-03-18T02:26:48Z")

</div>

Sure. join this new channel [Slack](https://ray-distributed.slack.com/archives/C037M7Z70QK)
