How to compile fcgi header c++ files *.h in the command line.
Waldemar Biernacki <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
thank you jancha!
> Check apache error log for more detailed error description.
I've told incorrectly: this lines can be compiled:
> c++ linfcgi++.so.0.0.0 -o my_app my_app.cpp
sorry for mistake.
The apache error log is as follows:
/var/www/fcgi-bin/franek/cpp/echo: error while loading shared libraries:
libfcgi++.so.0: cannot open shared object file: No such file or directory
Yes it seems to put the libfcgi++.so.0 somewhere ... but where?
Waldemar
ps. my_app looks like:
=================================
#include <iostream>
#include <cstdlib>
#include "fcgi_stdio.h"
using namespace std;
int main() {
int count = 0;
while ( FCGI_Accept() >= 0 ) {
printf("Content-type: text/html\r\n"
"\r\n"
"<title>FastCGI echo</title>"
"<h1>FastCGI echo</h1>\n"
"Request number %d, Process ID: %d<p>\n", ++count);
}
return 0;
}
=================================
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/