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

2010-11-30 Thread Ben Noordhuis
2010/11/30 whut_jia whut_...@163.com: 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

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++

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 i...@bnoordhuis.nl wrote: 2010/11/30 whut_jia whut_...@163.com: 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

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 i...@bnoordhuis.nl wrote: 2010/11/30 whut_jia whut_...@163.com: 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