[FASTCGI] Help Building a C application with FastCGI (and lighttpd)
jsprenkle at gmail.com
Tue Mar 9 13:41:55 EST 2010
If you get this error
"I get : lfcgi: No such file or directory"
That means it can't find the fcgi library.
Which explains the missing references error.
Search for the file libfcgi.* and try putting the full path on the library
You might look at the gcc man page and see the difference between providing
the path to the library and the library name on the command line.
On Tue, Mar 9, 2010 at 12:35 PM, kaustubh <kaustubh000 at gmail.com> wrote:
> oops typo !!! (i did include the '-')
> Sorry about that !
> On Tue, Mar 9, 2010 at 1:32 PM, Jay Sprenkle <jsprenkle at gmail.com> wrote:
>>> The FastCGI documentation for C development suggests that the FastCGI
>>> development kit be downloaded. It gives a makefile for all applications
>>> present but no clear instructions how to make changes to the makefile for
>>> any new C applications. I cannot make head or tail of the makefile so am
>>> unable to modify it for my new application. (I tried and failed numerous
>>> alternately: When I try and compile using gcc instead:
>>> gcc -I/home/owner/fcgi-2.4.0/libfcgi/ hello.c -o hello lfcgi
>>> I get : lfcgi: No such file or directory
>> I think you want "-lfcgi" (<---NOTE THE DASH)
>>> If i do gcc -I/home/owner/fcgi-2.4.0/libfcgi/ hello.c -o hello (same
>>> result for gcc hello.c -o hello )
>>> I get:
>>> /tmp/ccmPV0on.o: In function `main':
>>> hello.c:(.text+0x57): undefined reference to `FCGI_printf'
>>> hello.c:(.text+0x5c): undefined reference to `FCGI_Accept'
>>> collect2: ld returned 1 exit status
>>> (By my understanding this is a linker problem)
>> The dash above should fix this
> "All you need is ignorance and confidence and success is sure." - Mark
Cause united breaks guitars
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FastCGI-developers