|
From: Xiaofan C. <xia...@gm...> - 2011-06-18 02:03:42
|
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. mcuee@mcuee-PC-Win7 /d/work/cgic/cgic205 $ gcc -v Using built-in specs. COLLECT_GCC=D:\MinGW\bin\gcc.exe COLLECT_LTO_WRAPPER=d:/mingw/bin/../libexec/gcc/mingw32/4.5.2/lto-wrapper.exe Target: mingw32 Configured with: ../gcc-4.5.2/configure --enable-languages=c,c++,ada,fortran,obj c,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgo mp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-r untime-libs --disable-werror --build=mingw32 --prefix=/mingw Thread model: win32 gcc version 4.5.2 (GCC) -- Xiaofan |