Executing examples

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

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 and Installing OpenFHE for Windows

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

Thanks in advance :smiley:

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!