# Executing examples

**URL:** <https://openfhe.discourse.group/t/executing-examples/1490>\
**Category:** Library Questions\
**Created:** [August 12, 2024, 10:01am UTC](https://openfhe.discourse.group/t/executing-examples/1490 "2024-08-12T10:01:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Connyx](https://avatars.discourse-cdn.com/v4/letter/c/d26b3c/32.png) [@Connyx](https://openfhe.discourse.group/u/Connyx)\
**Post date:** [August 12, 2024, 10:01am UTC](https://openfhe.discourse.group/t/executing-examples/1490/1 "2024-08-12T10:01:33Z")

</div>

Hi everyone,

I have experienced weird behavior during testing examples (in this case it was “simple-integers.cpp”)

I have followed all the instructions for building and installing the library and it went well with the help from this topic: [Windows build error penfhe](https://openfhe.discourse.group/t/windows-build-error-penfhe/1469)

Unfortunatelly, when i tried to run simple-integers.exe in MSYS2 and Powershell, it doesn’t show anything in command line (it has some “cout”, so it should write some text).

Also, when i tried to run through command prompt, i get errors that some dll (one of them was “stdlibc+±6.dll”) are not existing, which is expecting behaviour.

I followed instructions from [Integration with OpenFHE](https://openfhe-development.readthedocs.io/en/latest/sphinx_rsts/intro/building_user_applications.html) and [Installing OpenFHE for Windows](https://openfhe-development.readthedocs.io/en/latest/sphinx_rsts/intro/installation/windows.html)

I have run out of ideas, so any help would be great.

Thanks in advance 😃

---

<div class="post-metadata">

**Author:** ![Connyx](https://avatars.discourse-cdn.com/v4/letter/c/d26b3c/32.png) [@Connyx](https://openfhe.discourse.group/u/Connyx)\
**Post date:** [August 12, 2024, 11:51am UTC](https://openfhe.discourse.group/t/executing-examples/1490/2 "2024-08-12T11:51:47Z")

</div>

Good news!

I have solved this issue by checking PATH variable in MSYS and inserting it.

First, in MSYS I checked PATH with command: `echo $PATH`.  
When it didn’t show path to the lib, I inserted next command: `export PATH=$PATH:/c/Program\ Files\ \(x86\)/OpenFHE/lib`

I want to note a few things. First, if you write wrong path for exporting PATH, it won’t show you any error. Second, path needs to be set in UNIX-like notation (like the example above), although MSYS is a tool for Windows OS. Third, putting lib path to System or User environment won’t solve this problem.

I hope this answer will help someone!
