# Error making my own application

**URL:** <https://openfhe.discourse.group/t/error-making-my-own-application/317>\
**Category:** Library Questions\
**Created:** [January 26, 2023, 8:26am UTC](https://openfhe.discourse.group/t/error-making-my-own-application/317 "2023-01-26T08:26:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jtovartr](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jtovartr](https://openfhe.discourse.group/u/jtovartr)\
**Post date:** [January 26, 2023, 8:26am UTC](https://openfhe.discourse.group/t/error-making-my-own-application/317/1 "2023-01-26T08:26:40Z")

</div>

Hi, evereyone, i’m trying to build my own app. I follow the steps in [Building User Applications — OpenFHE documentation](https://openfhe-development.readthedocs.io/en/latest/sphinx_rsts/intro/building_user_applications.html), but when i execute the **make** comand the output is:

```auto
c++: error: unrecognized command line option ‘-fopenmp=libomp’; did you mean ‘-fopenmp-simd’?
c++: error: unrecognized command line option ‘-fopenmp=libomp’; did you mean ‘-fopenmp-simd’?
make[2]: *** [CMakeFiles/test.dir/build.make:63: CMakeFiles/test.dir/demo-simple-example.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/test.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

```

The installation is correct as I can run the example **bin/examples/pke/simple-integers** correctly.

This error does not always appear as other times I have tried to run my own application and it has worked correctly.

---

<div class="post-metadata">

**Author:** ![iquah](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/iquah/32/8_2.png) [@iquah](https://openfhe.discourse.group/u/iquah)\
**Post date:** [January 26, 2023, 5:47pm UTC](https://openfhe.discourse.group/t/error-making-my-own-application/317/2 "2023-01-26T17:47:49Z")

</div>

Hi there!

It’s a little difficult to help without seeing the code and/or the CMAKE. Do you have a URL I can take a look at?

Thanks!

---

<div class="post-metadata">

**Author:** ![jtovartr](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jtovartr](https://openfhe.discourse.group/u/jtovartr)\
**Post date:** [January 30, 2023, 11:43am UTC](https://openfhe.discourse.group/t/error-making-my-own-application/317/3 "2023-01-30T11:43:55Z")

</div>

To create my own application I tried using the sample code available at [openfhe-development/simple-integers-serial.cpp at main · openfheorg/openfhe-development · GitHub](https://github.com/openfheorg/openfhe-development/blob/main/src/pke/examples/simple-integers-serial.cpp).

---

<div class="post-metadata">

**Author:** ![ypolyakov](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/ypolyakov/32/47_2.png) [@ypolyakov](https://openfhe.discourse.group/u/ypolyakov)\
**Post date:** [January 30, 2023, 11:53pm UTC](https://openfhe.discourse.group/t/error-making-my-own-application/317/4 "2023-01-30T23:53:53Z")

</div>

@jtovartr Could you also share the `CMakeLists.txt` file for your project?

Also, are you able to build OpenFHE w/o any problems? What compiler are you using?

---

<div class="post-metadata">

**Author:** ![iquah](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/iquah/32/8_2.png) [@iquah](https://openfhe.discourse.group/u/iquah)\
**Post date:** [February 3, 2023, 2:34pm UTC](https://openfhe.discourse.group/t/error-making-my-own-application/317/5 "2023-02-03T14:34:19Z")

</div>

@jtovartr

Are you still running into this issue? If not I’ll mark it as solved

---

<div class="post-metadata">

**Author:** ![jtovartr](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jtovartr](https://openfhe.discourse.group/u/jtovartr)\
**Post date:** [February 6, 2023, 7:52am UTC](https://openfhe.discourse.group/t/error-making-my-own-application/317/6 "2023-02-06T07:52:17Z")

</div>

I’m sorry for taking so long to respond but I’ve already solved it. The solution was to reinstall openfhe and now it works correctly.

---

<div class="post-metadata">

**Author:** ![iquah](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/iquah/32/8_2.png) [@iquah](https://openfhe.discourse.group/u/iquah)\
**Post date:** [May 3, 2023, 4:53pm UTC](https://openfhe.discourse.group/t/error-making-my-own-application/317/8 "2023-05-03T16:53:57Z")

</div>

This topic was resolved and your question isn’t related to the original question. Please open a new thread
