Re: C++ module

2016-06-15 Thread Shuxin Yang
On 06/15/2016 09:18 PM, Rajalakshmi Iyer wrote: Thanks everyone. I have been able to compile a C++ module fine. But I am primarily trying to figure out if it's safe to use features like STL containers or Boost libraries within an Nginx module. In my project, I used STL. it works fin

Re: C++ module

2016-06-15 Thread Hung Nguyen
:18 AM To: Subject: Re: C++ module Thanks everyone. I have been able to compile a C++ module fine. But I am primarily trying to figure out if it's safe to use features like STL containers or Boost libraries within an Nginx module. I am asking this because if I try to allocate an std::s

Re: C++ module

2016-06-15 Thread Rajalakshmi Iyer
Thanks everyone. I have been able to compile a C++ module fine. But I am primarily trying to figure out if it's safe to use features like STL containers or Boost libraries within an Nginx module. I am asking this because if I try to allocate an std::string within say the module context,

Re: C++ module

2016-06-15 Thread Hung Nguyen
Hello, Nginx comes with a demo module written in C++ in source code Sent from my iPhone > On Jun 16, 2016, at 3:49 AM, Piotr Sikora wrote: > > Hey Raj, > it is, take a look at ngx_brotli [1] and ngx_pagespeed [2]. > > [1] https://github.com/google/ngx_brotli > [2] https://github.com/pagespee

Re: C++ module

2016-06-15 Thread Piotr Sikora
Hey Raj, it is, take a look at ngx_brotli [1] and ngx_pagespeed [2]. [1] https://github.com/google/ngx_brotli [2] https://github.com/pagespeed/ngx_pagespeed Best regards, Piotr Sikora On Wed, Jun 15, 2016 at 8:27 AM, Rajalakshmi Iyer wrote: > Hello, > > Just wanted to check if it is possible t

Re: C++ module

2016-06-15 Thread shuxinyang
Quite frankly, I don't know the standard way. My way to tackle this problem is to add config.make to the module like this: cat config.make find $ngx_addon_dir -name "*.cc" -print | while read x; do x=$(basename $x | sed 's/\.c

C++ module

2016-06-15 Thread Rajalakshmi Iyer
Hello, Just wanted to check if it is possible to write NGINX modules in C++ that makes extensive use of the standard template library (STL)? If so, what are the things that one needs to be careful about? Thanks in advance, Raj -- This email and any attachments to it may be confidential and are