# C/C++ in devcontainer

**URL:** <https://forum.cursor.com/t/c-c-in-devcontainer/97691>\
**Category:** Bug Reports\
**Created:** [May 28, 2025, 6:30am UTC](https://forum.cursor.com/t/c-c-in-devcontainer/97691 "2025-05-28T06:30:06Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbabokin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dbabokin/32/59080_2.png) [@dbabokin](https://forum.cursor.com/u/dbabokin)\
**Post date:** [May 28, 2025, 6:30am UTC](https://forum.cursor.com/t/c-c-in-devcontainer/97691/1 "2025-05-28T06:30:06Z")

</div>

I’m running a devcontainer on the remote SSH machine. And C/C++ extension stopped working for me recently. I have the following messages in “C/C++” Output console:

```auto
Warning: Expected file /root/.cursor-server/extensions/anysphere.cpptools-2.0.0-linux-x64/bin/cpptools is missing.

Warning: Expected file /root/.cursor-server/extensions/anysphere.cpptools-2.0.0-linux-x64/bin/cpptools-srv is missing.

Warning: Expected file /root/.cursor-server/extensions/anysphere.cpptools-2.0.0-linux-x64/bin/cpptools-wordexp is missing.

Warning: Expected file /root/.cursor-server/extensions/anysphere.cpptools-2.0.0-linux-x64/bin/libc.so is missing.
intelliSenseEngine is disabled

```

I tried reinstalling Cursor and removing ~/.cursor\* on the remote host. Any tips how to debug this?

---

<div class="post-metadata">

**Author:** ![dbabokin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dbabokin/32/59080_2.png) [@dbabokin](https://forum.cursor.com/u/dbabokin)\
**Post date:** [May 28, 2025, 7:04am UTC](https://forum.cursor.com/t/c-c-in-devcontainer/97691/3 "2025-05-28T07:04:27Z")

</div>

These files are really missing:

```auto
ls /root/.cursor-server/extensions/anysphere.cpptools-2.0.0/bin
common.json linux.clang.x64.json linux.gcc.arm.json macos.clang.arm64.json macos.clang.x86.json macos.gcc.x64.json windows.clang.arm64.json windows.clang.x86.json windows.gcc.x64.json windows.msvc.arm.json
linux.clang.arm64.json linux.clang.x86.json linux.gcc.x64.json macos.clang.arm.json macos.gcc.arm64.json macos.gcc.x86.json windows.clang.arm.json windows.gcc.arm64.json windows.gcc.x86.json windows.msvc.x64.json
linux.clang.arm.json linux.gcc.arm64.json linux.gcc.x86.json macos.clang.x64.json macos.gcc.arm.json messages windows.clang.x64.json windows.gcc.arm.json windows.msvc.arm64.json windows.msvc.x86.json

```

No libs are there.

---

<div class="post-metadata">

**Author:** ![ravirahman](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ravirahman/32/20386_2.png) [@ravirahman](https://forum.cursor.com/u/ravirahman)\
**Post date:** [May 28, 2025, 7:22am UTC](https://forum.cursor.com/t/c-c-in-devcontainer/97691/5 "2025-05-28T07:22:22Z")

</div>

Hi @dbabokin, the `libc.so` is not distributed with the extension. This indicates that the dynamic linker couldn’t find the library – which flavor of Linux are you on? You might need to install `libc6` if it is not there.

(The other warnings about cpptools missing are expected)

Also, if you’re coming from the VSCode cpptools extension, you’ll need to configure clangd for LSP support. ClangD is bundled with our extension. This can be done by having your build utility (e.g. CMake) generate a `compile_commands.json`, that clangd then reads. The [ClangD docs](https://clangd.llvm.org/installation) have more info for how to set this up.

---

<div class="post-metadata">

**Author:** ![dbabokin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dbabokin/32/59080_2.png) [@dbabokin](https://forum.cursor.com/u/dbabokin)\
**Post date:** [May 28, 2025, 7:38am UTC](https://forum.cursor.com/t/c-c-in-devcontainer/97691/6 "2025-05-28T07:38:50Z")

</div>

I’m running in Ubuntu 22.04 container. I tried standard MS dev container and my own container, which is based on Ubuntu 22.04. I have clang and libc installed. What is libc version requirement in anysphere.cpptools-2.0.0 build for x64 linux?

---

<div class="post-metadata">

**Author:** ![dbabokin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dbabokin/32/59080_2.png) [@dbabokin](https://forum.cursor.com/u/dbabokin)\
**Post date:** [May 28, 2025, 6:02pm UTC](https://forum.cursor.com/t/c-c-in-devcontainer/97691/8 "2025-05-28T18:02:58Z")

</div>

I tried fresh `mcr.microsoft.com/devcontainers/base:ubuntu-24.04` devcontainer - same problem. Any tips or suggestions how to debug are welcome.

---

<div class="post-metadata">

**Author:** ![lokimon](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/lokimon/32/24276_2.png) [@lokimon](https://forum.cursor.com/u/lokimon)\
**Post date:** [May 29, 2025, 7:20pm UTC](https://forum.cursor.com/t/c-c-in-devcontainer/97691/10 "2025-05-29T19:20:25Z")

</div>

Seeing the same thing.  
Fresh container, installed anysphere c/c++ extension. Exact same error messages.

---

<div class="post-metadata">

**Author:** ![dbabokin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dbabokin/32/59080_2.png) [@dbabokin](https://forum.cursor.com/u/dbabokin)\
**Post date:** [May 29, 2025, 8:15pm UTC](https://forum.cursor.com/t/c-c-in-devcontainer/97691/12 "2025-05-29T20:15:59Z")

</div>

I also tried native remote execution. Nothing worked. I eventually switch to clangd.

---

<div class="post-metadata">

**Author:** ![dbabokin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dbabokin/32/59080_2.png) [@dbabokin](https://forum.cursor.com/u/dbabokin)\
**Post date:** [June 24, 2025, 8:21am UTC](https://forum.cursor.com/t/c-c-in-devcontainer/97691/14 "2025-06-24T08:21:31Z")

</div>

I’m wondering, did anyone succeed to use anysphere c/c++ extension on Linux at all? What’s your setup?

---

<div class="post-metadata">

**Author:** ![ravirahman](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ravirahman/32/20386_2.png) [@ravirahman](https://forum.cursor.com/u/ravirahman)\
**Post date:** [June 24, 2025, 6:07pm UTC](https://forum.cursor.com/t/c-c-in-devcontainer/97691/16 "2025-06-24T18:07:09Z")

</div>

Hi @dbabokin, could you share more about the specific issue that you’re running into? Is the LSP not responding or something else happening?

Under the scenes, our extension relies on Clangd for LSP support (we bundle it with the Anysphere C++).

---

<div class="post-metadata">

**Author:** ![dbabokin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dbabokin/32/59080_2.png) [@dbabokin](https://forum.cursor.com/u/dbabokin)\
**Post date:** [June 25, 2025, 8:27am UTC](https://forum.cursor.com/t/c-c-in-devcontainer/97691/17 "2025-06-25T08:27:51Z")

</div>

I install “C/C++ Extension Pack”, which triggers installation of “C/C++” extension (anysphere.cpptools). My client is on macOS and I’m connecting to Linux remote (Ubuntu 22.04). I tired SSH connection and devcontainer on the remote host (Ubuntu 22.04 and Ubuntu 24.04 based). In any of these scenarios C/C++ extension fails on startup with the message in the original post and I don’t get any C/C++ browsing support.

So I have to disable “C/C++” manually and install “clangd” extension (`llvm-vs-code-extensions.vscode-clangd`). That is my workaround and it works fine for me. But not the “C/C++” extension.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [July 25, 2025, 8:27am UTC](https://forum.cursor.com/t/c-c-in-devcontainer/97691/19 "2025-07-25T08:27:57Z")

</div>

Closed on July 25, 2025, 8:27am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
