[FASTCGI] Compilation error in "FastCGI using C"

Darren Garvey lists.drrngrvy at gmail.com
Thu Aug 27 06:25:28 EDT 2009


Hi Sauda,

Do you need to include "fastcgi.h" ?

Regards,
Darren

2009/8/27 <sauda.furkhana at wipro.com>

>  Hi,
>
>
>
> Can someone help me out with this? I’m getting “error C2065: 'FCGI_Accept'
> : undeclared identifier” when I try to compile the code below:
>
>
>
> #include "fcgi_stdio.h"
>
> #include "fcgiapp.h"
>
> #include <stdlib.h>
>
> #include "stdafx.h"
>
>
>
> int main(int argc, char* argv[])
>
> {
>
>             while (FCGI_Accept() >= 0)
>
>             {
>
>                         printf("Hello World!\n");
>
>             }
>
>             return 0;
>
> }
>
>
>
> Details:
>
> 1) Build environment: MS VC++ 6.0
>
> 2) Downloaded the FastCGI SDK from http://www.fastcgi.com/drupal/node/5. Unzipped
> the contents to “C:\Program Files\fcgi-2.4.0”.
>
> 3) Downloaded libfcgi.dll from: “
> http://download.corruptedfilerepair.com/post/2008/08/14/libfcgidll-Download-File-libfcgidll.aspx
>>
> 4) Downloaded “dll to lib” software from “
> http://www.binary-soft.com/download.htm” -  converted libfcgi.dll<http://www.binary-soft.com/download.htm>to libfcgi.lib and placed at “C:\Program
> Files\Microsoft Visual Studio\VC98\Lib”
>
> 5) IDE Settings:
>
> Tools->Options->Directories->IncludeFiles has entry pointing to C:\Program
> Files\fcgi-2.4.0\Include
>
> Tools->Options->Directories->LibraryFiles has entry pointing to C:\Program
> Files\Microsoft Visual Studio\VC98\Lib
>
>
>
> Regards,
>
> Sauda
>
>
>
> * Please do not print this email unless it is absolutely necessary. *
>
> The information contained in this electronic message and any attachments to
> this message are intended for the exclusive use of the addressee(s) and may
> contain proprietary, confidential or privileged information. If you are not
> the intended recipient, you should not disseminate, distribute or copy this
> e-mail. Please notify the sender immediately and destroy all copies of this
> message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses. The
> company accepts no liability for any damage caused by any virus transmitted
> by this email.
>
> www.wipro.com
>
> _______________________________________________
> FastCGI-developers mailing list
> FastCGI-developers at mailman.fastcgi.com
> http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.pins.net/mailman/private.cgi/fastcgi-developers/attachments/20090827/10ddf6d6/attachment.html>


More information about the FastCGI-developers mailing list