help-cgicc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[help-cgicc] Can't build on cygwin


From: Douglas Rudoff
Subject: [help-cgicc] Can't build on cygwin
Date: Wed, 20 Nov 2002 21:03:56 -0800 (PST)

I'm using the latest cygwin downloads with g++ 3.2 and version 1.3.15-2 
of cygwin1.dll.

The cgicc make fails in the demo directory (see output below). No
executables can be built with the created library.

However, if I use the older g++ version 2.95-3.10 (which can be
downloaded from the cygwin builds as gcc-2 and g++-2), all builds
fine, and I can build my own executable with the ccgi library. But,
unfortunately, I can't run my application as it fails immediately with
this error:
    4 [unknown (0x894)] ? 3604 cygheap_fixup_in_child: Couldn't reserve
    space for cygwin's heap (0x615D0000 <0x1060000>) in child, Win32
    error 487
    f:\projects\ecom\cpp\cgiSearch.exe: *** m.AllocationBase 0x615A0000,
    m.BaseAddress 0x615D0000, m.RegionSize 0x47000, m.State 0x1000

But since the apps in the cgicc/demo run, it's probably something in my 
code that's causing the above problem with g++ 2.95.

Here's some output from where the cgicc build fails in cgicc/demo while 
using g++ 3.2:

Making all in demo
make[1]: Entering directory `/cygdrive/f/build/cgicc-3.2.1/demo'
source='test.cpp' object='test.o' libtool=no \
depfile='.deps/test.Po' tmpdepfile='.deps/test.TPo' \
depmode=gcc3 /bin/bash ../support/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../cgicc -I.. -I..    -Wall -W -pedantic
-g -O2 -c -o test.o `test -f test.cpp || echo './'`test.cpp
/bin/bash ../libtool --mode=link g++  -Wall -W -pedantic -g -O2   -o
test.cgi.exe  test.o ../cgicc/libcgicc.la  
mkdir .libs
g++ -Wall -W -pedantic -g -O2 -o test.cgi.exe test.o
../cgicc/.libs/libcgicc.a
test.o(.ctors+0x0): In function
`_ZNK5cgicc18HTMLBooleanElementINS_7htmlTagEE7getNameEv':
/cygdrive/f/build/cgicc-3.2.1/demo/../cgicc/HTMLBooleanElement.h:
undefined reference to `__GLOBAL__I_main'
test.o(.dtors+0x0):/cygdrive/f/build/cgicc-3.2.1/demo/../cgicc/HTMLBooleanElement.h:
undefined reference to `__GLOBAL__D_main'
../cgicc/.libs/libcgicc.a(HTMLElement.o)(.ctors+0x0): In function
`_ZN5cgicc11HTMLElementC1Ev':
/cygdrive/f/build/cgicc-3.2.1/cgicc/../cgicc/HTMLElement.h: undefined
reference to `__GLOBAL__I__ZN5cgicc11HTMLElementC2ERKS0_'
../cgicc/.libs/libcgicc.a(HTMLElement.o)(.dtors+0x0):/cygdrive/f/build/cgicc-3.2.1/cgicc/../cgicc/HTMLElement.h:
undefined reference to `__GLOBAL__D__ZN5cgicc11HTMLElementC2ERKS0_'
../cgicc/.libs/libcgicc.a(HTTPHTMLHeader.o)(.ctors+0x0):HTTPHTMLHeader.cpp:
undefined reference to `__GLOBAL__I__ZN5cgicc14HTTPHTMLHeaderC2Ev'
../cgicc/.libs/libcgicc.a(HTTPHTMLHeader.o)(.dtors+0x0):HTTPHTMLHeader.cpp:
undefined reference to `__GLOBAL__D__ZN5cgicc14HTTPHTMLHeaderC2Ev'
../cgicc/.libs/libcgicc.a(HTTPContentHeader.o)(.ctors+0x0): In
function `_ZN5cgicc17HTTPContentHeaderC2ERKSs':
/cygdrive/f/build/cgicc-3.2.1/cgicc/HTTPContentHeader.cpp:31:
undefined reference to
`__GLOBAL__I__ZN5cgicc17HTTPContentHeaderC2ERKSs'
../cgicc/.libs/libcgicc.a(HTTPContentHeader.o)(.dtors+0x0):/cygdrive/f/build/cgicc-3.2.1/cgicc/HTTPContentHeader.cpp:31:
undefined reference to
`__GLOBAL__D__ZN5cgicc17HTTPContentHeaderC2ERKSs'
collect2: ld returned 1 exit status

So, right now I'm stuck. I can build, but can't execute my application
with g++ 2.95. I've heard upgrading to g++ 3.2 could fix this - but I 
can't build a cgicc library that I can link to my app successfully.

Any ideas?


Doug Rudoff
address@hidden






reply via email to

[Prev in Thread] Current Thread [Next in Thread]