-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf
Of Leonick, Chris
Sent: Tuesday, January 22, 2002
4:40 PM
To: 'address@hidden'
Subject: Problem compiling the
cgicc class library on FreeBSD
Hi,
I want to use the cgicc class library to
write CGI applications in C++. I'm developing on FreeBSD 3.4-RELEASE
#5. I downloaded the tarfile, cgicc-3.2.tar.gz, from the cgicc web
site. I followed the instructions to untar the files. I read the
INSTALL document, and started by running the configure script. I ran into
a problem when I ran make. The following error stopped me from compiling:
%make
Making all
in cgicc
cd ..
&& CONFIG_FILES= CONFIG_HEADERS=cgicc/config.h /bin/sh
./config.status
config.status:
creating cgicc/config.h
config.status:
cgicc/config.h is unchanged
make
all-am
source='CgiEnvironment.cpp'
object='CgiEnvironment.lo' libtool=yes depfile='.deps/CgiEnvironment.Plo'
tmpdepfile='.deps/CgiEnvironment.TPlo' depmode=gcc /bin/sh
../support/depcomp /bin/sh ../libtool --mode=compile g++
-DHAVE_CONFIG_H -I. -I. -I. -I.. -I.. -Wall -W
-pedantic -g -O2 -c -o CgiEnvironment.lo `test -f CgiEnvironment.cpp || echo
'./'`CgiEnvironment.cpp
mkdir .libs
g++
-DHAVE_CONFIG_H -I. -I. -I. -I.. -I.. -Wall -W -pedantic -g -O2 -c
CgiEnvironment.cpp -Wp,-MD,.deps/CgiEnvironment.TPlo -fPIC -DPIC
In file included from ../cgicc/CgiEnvironment.h:43,
from CgiEnvironment.cpp:36:
../cgicc/CgiUtils.h:38:
fstream: No such file or directory
In file
included from ../cgicc/HTTPCookie.h:35,
from ../cgicc/CgiEnvironment.h:44,
from CgiEnvironment.cpp:36:
../cgicc/MStreamable.h:36:
iostream: No such file or directory
*** Error
code 1
Stop.
*** Error
code 1
Stop.
*** Error
code 1
Stop.
While I tried to troubleshoot this I found that the include
directory is /usr/include, the files iostream.h and fstream.h are located in
/usr/include/g++. Could you please help me to compile cgicc?
Thanks,
Chris