www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - cgi.d - fastcgi - how am i suppose to link in libfcgi.a or libfcgi.lib

reply "Sycam_Inc" <sycam.inc gmail.com> writes:
im truing to use the fastcgi support provided by cgi.d found at 
https://github.com/adamdruppe/arsd/blob/master/cgi.d with the 
-version fastcgi flag on the compiler.
however its creator said it requires the fastcgi C lib
reviously, it spoke regular CGI, FastCGI (with help
from a C lib) and HTTP (with help from the netman.d
and httpd.d files in that github).
and i cant find a copy of it that can link with D, I've tried: building it from source (complains about missing file sys/socket.h) converting it with objconv (threw a bunch of errors) using coffimplib (threw a bunch of errors) using GDC (complains about undefined refrences in libphobos2.a socket.o (windows is so much fun)) what should i consider next?
Oct 01 2014
parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
Try linking in these .obj files that I compiled for windows a 
while ago:

http://arsdnet.net/dcode/fcgi_win.zip

so unzip that, put it in your project directory and just add both 
.obj files to your compile command line along with 
-version=fastcgi.

It has been a LONG time since I used that, but I'm pretty sure 
that worked when I tried it on 32 bit windows and running the 
program through IIS.
Oct 01 2014
parent "Sycam_Inc" <sycam.inc gmail.com> writes:
On Wednesday, 1 October 2014 at 17:09:06 UTC, Adam D. Ruppe wrote:
 Try linking in these .obj files that I compiled for windows a 
 while ago:

 http://arsdnet.net/dcode/fcgi_win.zip

 so unzip that, put it in your project directory and just add 
 both .obj files to your compile command line along with 
 -version=fastcgi.

 It has been a LONG time since I used that, but I'm pretty sure 
 that worked when I tried it on 32 bit windows and running the 
 program through IIS.
Thank You, You have made a days worth of headache worth it. Now to make it work with lighttdp
Oct 01 2014