help-cgicc
[Top][All Lists]
Advanced

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

RE: Compilation problems...


From: Evan Davey
Subject: RE: Compilation problems...
Date: Wed, 14 Feb 2001 18:56:02 +1100

Stephen,

I have not compilied it with the DEBUG macro #defined, and this problem
seems to be occuring whenever i try and compile anything using cgicc.  I
tried compiling the example that comes with the cgicc repository under
"cvscc/example" and it gives the same error:

address@hidden example]# make
/bin/sh ./libtool --mode=link c++  -g -O2  -o example.cgi  example.o
/usr/local/lib/libcgicc.la
c++ -g -O2 -o .libs/example.cgi example.o
/usr/local/lib/libcgicc.so -Wl,--rpath -Wl,/usr/local/lib
/usr/local/lib/libcgicc.so: undefined reference to `gLogFile'
collect2: ld returned 1 exit status
make: *** [example.cgi] Error 1

This seems to be a problem with the libcgicc.so file?  Have I not installed
cgicc correctly?

Regards,

Evan Davey


-----Original Message-----
From: Stephen F. Booth [mailto:address@hidden
Sent: Wednesday, 14 February 2001 12:01 PM
To: Evan Davey; address@hidden
Subject: RE: Compilation problems...


Evan,

Did you compile with the DEBUG macro #defined?  That would define an extern
iostream, gLogFile, that would be unresolved unless you either compile with
debug off or compile your cgi with debug on.

> Howdy all... I'm another one who is new to the wonders of cgicc.
> With a bit
> of reading and some fumbling around I've managed to get it installed and
> "almost" compiling C++ files using the library....  But i get the error
> "undefined reference to 'gLogFile'" as shown below, when i attempt to link
> any of my files using the cgicc libraries.  Does anybody know why
> this would
> be?
>
> Example input (compiling one of the examples i found in the
> documentation):
>
> address@hidden cgi]$ make
> g++ -g -Wall -o test test.o -lcgicc
> /usr/local/lib/libcgicc.so: undefined reference to `gLogFile'
> collect2: ld returned 1 exit status
> make: *** [test] Error 1




reply via email to

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