Re: compile a file written by C++ into apache

2010-11-30 Thread whut_jia
At 2010-11-30 22:58:01,"Eric Covener" wrote: >On Tue, Nov 30, 2010 at 8:58 AM, Ben Noordhuis wrote: >> 2010/11/30 whut_jia : >>> In Apache2.2, I compile a c++ source file with g++ as below: >>> g++ -fPIC -shared -o mod_validate.so mod_validate.cpp -I/usr/include/httpd >>> -I/usr/include/apr-1

Re:Re: Re: compile a file written by C++ into apache

2010-11-30 Thread whut_jia
At 2010-11-30 21:58:56,"Ben Noordhuis" wrote: >2010/11/30 whut_jia : >> In Apache2.2, I compile a c++ source file with g++ as below: >> g++ -fPIC -shared -o mod_validate.so mod_validate.cpp -I/usr/include/httpd >> -I/usr/include/apr-1 -I/opt/opensaml/include >> After it , I copy mod_calidate.so

Re: Re: compile a file written by C++ into apache

2010-11-30 Thread Eric Covener
On Tue, Nov 30, 2010 at 8:58 AM, Ben Noordhuis wrote: > 2010/11/30 whut_jia : >> In Apache2.2, I compile a c++ source file with g++ as below: >> g++ -fPIC -shared -o mod_validate.so mod_validate.cpp -I/usr/include/httpd >> -I/usr/include/apr-1 -I/opt/opensaml/include >> After it , I copy mod_cali

Re: compile a file written by C++ into apache

2010-11-30 Thread whut_jia
Hi,thank you for your reply.Because I called the third-party Library,so I want to write a module with c++ ,in which I can call the function directly.Can you give me some help how I compile module written by c++ into apache DSO file.I used apxs tool but it failed.This tool can't compiling c++ s

Re: Re: compile a file written by C++ into apache

2010-11-30 Thread Ben Noordhuis
2010/11/30 whut_jia : > In Apache2.2, I compile a c++ source file with g++ as below: > g++ -fPIC -shared -o mod_validate.so mod_validate.cpp -I/usr/include/httpd > -I/usr/include/apr-1 -I/opt/opensaml/include > After it , I copy mod_calidate.so into apache module location ,and this > module work

Re: compile a file written by C++ into apache

2010-11-30 Thread Ben Noordhuis
2010/11/30 whut_jia : > I write a module by C++ supporting the generation of SAML assertion, so in my >  module I called the OpenSAML Library.The question is how I compile this > source file written by c++ language into my apache server. Like you compile any mixed project: define a function in y