Re: Help Building a C application with FastCGI (and lighttpd)
Jay Sprenkle <[email protected]> Tue, 9 Mar 2010 12:41:55 -0600
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
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 directory specification. 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 <[email protected]> wrote: > oops typo !!! (i did include the '-') > Sorry about that ! > > > On Tue, Mar 9, 2010 at 1:32 PM, Jay Sprenkle <[email protected]> wrote: > >> >> >>> Problem: >>> 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 >>> times) >>> >>> 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 > Twain > -- Cause united breaks guitars http://www.youtube.com/watch?v=5YGc4zOqozo _______________________________________________ FastCGI-developers mailing list FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers