I've been trying for days now to build my first FastCGI application using gcc.
This is the output:
Code:
$ gcc tiny-fcgi.c -L/usr/lib -llibfcgi
/usr/bin/ld: cannot find -llibfcgi
collect2: ld returned 1 exit status
I believe I wouldn't have to refer to the lib path, but I added the -L flag to be sure.
The directory /usr/lib includes (among others) these files:
Code:
$ ls /usr/lib/libfcgi*
/usr/lib/libfcgi.a /usr/lib/libfcgi.so /usr/lib/libfcgi.so.0.0.0
/usr/lib/libfcgi++.a /usr/lib/libfcgi++.so /usr/lib/libfcgi++.so.0.0.0
/usr/lib/libfcgi.la /usr/lib/libfcgi.so.0
/usr/lib/libfcgi++.la /usr/lib/libfcgi++.so.0
I have tried to follow
these instructions. The files in the tar.gz archive provided by FastCGI.com no longer corresponds to the instructions there, but I was still able to run the ./configure and make commands so I believe FastCGI is installed.
But why can not the library be properly linked to? Really hope you can help me out on this one!