# Embed Nginx as a static library with C++ application

**URL:** <https://www.ruby-forum.com/t/embed-nginx-as-a-static-library-with-c-application/184075>\
**Category:** NGINX\
**Created:** [February 24, 2010, 5:38pm UTC](https://www.ruby-forum.com/t/embed-nginx-as-a-static-library-with-c-application/184075 "2010-02-24T17:38:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahul123](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@rahul123](https://www.ruby-forum.com/u/rahul123)\
**Post date:** [February 24, 2010, 5:38pm UTC](https://www.ruby-forum.com/t/embed-nginx-as-a-static-library-with-c-application/184075/1 "2010-02-24T17:38:21Z")

</div>

Hi,

I wish to embed Nginx as a static library with my C++ application.  
Whether Nginx will support work on both Windows and Linux. I tried to  
download the Nginx source and I can only Nginx.exe and have steps to  
run that exe. I have also tried to download the Nginx source files from  
a tar file and face some compilation issues in Windows OS.

I dont want to use such applications like FastCGI with Nginx. I wish to  
just embed as a static library in my cpp application and wish to call  
from my c++ itself. Is it possible?

Could any one point me to a documentation for this or with any sample  
source code to do it.

Thanks in advance

Posted at Nginx Forum:

> **[Embed Nginx as a static library with C++ application](https://forum.nginx.org/read.php?2,56882,56882#msg-56882)**
>
> Hi, I wish to embed Nginx as a static library with my C++ application. Whether Nginx will support work on both Windows and Linux. I tried to download the Nginx source and I can only Nginx.exe and have steps to run that exe. I have also tried to...

---

<div class="post-metadata">

**Author:** ![rahul123](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@rahul123](https://www.ruby-forum.com/u/rahul123)\
**Post date:** [February 26, 2010, 12:59pm UTC](https://www.ruby-forum.com/t/embed-nginx-as-a-static-library-with-c-application/184075/2 "2010-02-26T12:59:18Z")

</div>

rahul123 ha scritto:

> Hi,
> 
> I wish to embed Nginx as a static library with my C++ application. Whether Nginx will support work on both Windows and Linux. I tried to download the Nginx source and I can only Nginx.exe and have steps to run that exe. I have also tried to download the Nginx source files from a tar file and face some compilation issues in Windows OS.
> 
> I dont want to use such applications like FastCGI with Nginx. I wish to just embed as a static library in my cpp application and wish to call from my c++ itself. Is it possible?

Nginx is a server.  
It’s usually the server that embeds application code.

Manlio
