|
From: JonY <jo...@us...> - 2011-06-18 02:14:56
|
On 6/18/2011 10:03, Xiaofan Chen wrote: > On Sat, Jun 18, 2011 at 9:50 AM, JonY <jo...@us...> wrote: >> On 6/18/2011 06:14, KURT PETERS wrote: >>> >>> I'm using MingW with largely the default config with eclipse >> CDT, mingW 4.5.0, on windows XP. I did a quick "hello world" test which >> ran nicely. I then went to compile cgic.c from boutelle's web site, >> mentioned in this article: http://www.linuxjournal.com/article/6863. >> >> Can you please post the file instead of a link? I can't find the codes >> that you mentioned. > > I think he means this one. > http://www.boutell.com/cgic/#obtain > > I just tried it under MinGW and there is no issues. I think the OP > may have a environment setup problem. > > mcuee@mcuee-PC-Win7 /d/work/cgic/cgic205 > $ make > gcc -g -Wall -c -o cgic.o cgic.c > rm -f libcgic.a > ar rc libcgic.a cgic.o > ranlib libcgic.a > gcc -g -Wall -c -o cgictest.o cgictest.c > gcc cgictest.o -o cgictest.cgi -L./ -lcgic > gcc -g -Wall -c -o capture.o capture.c > gcc capture.o -o capture -L./ -lcgic > > mcuee@mcuee-PC-Win7 /d/work/cgic/cgic205 > $ capture > Content-type: text/html > > <title>Captured</title> > <h1>Captured</h1> > Your form submission was captured for use in > debugging CGI code. > It'll be interesting if the OP can post his .s from "C:\DOCUME~1\kpeters\LOCALS~1\Temp\ccZdExdz.s". For now I suspect he has an old assembler installed. |