# How to run the example in Visual Studio Code?

**URL:** <https://openfhe.discourse.group/t/how-to-run-the-example-in-visual-studio-code/202>\
**Category:** Library Questions\
**Tags:** questions\
**Created:** [November 3, 2022, 1:37pm UTC](https://openfhe.discourse.group/t/how-to-run-the-example-in-visual-studio-code/202 "2022-11-03T13:37:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lance](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@lance](https://openfhe.discourse.group/u/lance)\
**Post date:** [November 3, 2022, 1:37pm UTC](https://openfhe.discourse.group/t/how-to-run-the-example-in-visual-studio-code/202/1 "2022-11-03T13:37:26Z")

</div>

When I run the example in Visual Studio Code, it post error that

```auto
#include “openfhe.h”
^ ~~~~~~~~~~
There is no such file in the directory gcc

```

I installed the OpenFHE in WSL, and the example does successfully run in terminal. I confirm these head files have built in correct path `/usr/local/include/pke` et al…  
I have added following code in `setting.json` of Visual Studio Code:

```auto
    "C_Cpp.default.includePath": [
        "/usr/local/include/openfhe/core",
        "/usr/local/include/openfhe/pke",
        "/usr/local/include/openfhe/cereal"
    ]

```

I have no idea the problem is 😭

---

<div class="post-metadata">

**Author:** ![dsuponitskiy-duality](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@dsuponitskiy-duality](https://openfhe.discourse.group/u/dsuponitskiy-duality)\
**Post date:** [November 3, 2022, 1:54pm UTC](https://openfhe.discourse.group/t/how-to-run-the-example-in-visual-studio-code/202/2 "2022-11-03T13:54:19Z")

</div>

Please read the OpenFHE documentation: [Welcome to OpenFHE’s documentation! — OpenFHE documentation](https://openfhe-development.readthedocs.io/en/latest/)

---

<div class="post-metadata">

**Author:** ![saroja](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@saroja](https://openfhe.discourse.group/u/saroja)\
**Post date:** [November 3, 2022, 2:00pm UTC](https://openfhe.discourse.group/t/how-to-run-the-example-in-visual-studio-code/202/3 "2022-11-03T14:00:19Z")

</div>

Can you confirm that you have the file “openfhe.h” in your /usr/local/include/openfhe/pke directory?

---

<div class="post-metadata">

**Author:** ![lance](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@lance](https://openfhe.discourse.group/u/lance)\
**Post date:** [November 3, 2022, 3:37pm UTC](https://openfhe.discourse.group/t/how-to-run-the-example-in-visual-studio-code/202/4 "2022-11-03T15:37:11Z")

</div>

Yes, I think the file “openfhe.h” is in right directory

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/openfhe/original/1X/c6fed97de6f858f4e55bf3fe851a9b9649351dc5.png)

---

<div class="post-metadata">

**Author:** ![Nightingale](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/nightingale/32/93_2.png) [@Nightingale](https://openfhe.discourse.group/u/Nightingale)\
**Post date:** [February 13, 2023, 8:54am UTC](https://openfhe.discourse.group/t/how-to-run-the-example-in-visual-studio-code/202/5 "2023-02-13T08:54:07Z")

</div>

Hi, i am trying to run an example in Visual Studio Code (Windows 11), i applied the steps on the OpenFHE document. cmake… and make commands are working true and an output file are built " xxx.exe". But i can’t run the output file.

ERROR: Unable to start debugging. Unexpected GDB output from command “-exec-run”. During startup program exited with code 0xc0000135.

How can i solve this problem?

---

<div class="post-metadata">

**Author:** ![lance](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@lance](https://openfhe.discourse.group/u/lance)\
**Post date:** [February 13, 2023, 3:01pm UTC](https://openfhe.discourse.group/t/how-to-run-the-example-in-visual-studio-code/202/6 "2023-02-13T15:01:25Z")

</div>

Sorry, I have no idea about your problem.  
But I truly suggest you try again in Linux, which easily installs and uses this software.

---

<div class="post-metadata">

**Author:** ![Nightingale](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/nightingale/32/93_2.png) [@Nightingale](https://openfhe.discourse.group/u/Nightingale)\
**Post date:** [February 14, 2023, 7:15am UTC](https://openfhe.discourse.group/t/how-to-run-the-example-in-visual-studio-code/202/7 "2023-02-14T07:15:34Z")

</div>

Thank you, I will try. 👍🏼
