help-cgicc
[Top][All Lists]
Advanced

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

[help-cgicc] cgicc-3.2.2.tar.gz compile errors.


From: fikret.ozgun
Subject: [help-cgicc] cgicc-3.2.2.tar.gz compile errors.
Date: Thu, 19 Feb 2004 12:58:29 +0200

 

I have compiled and installed cgicc-3.2.2.tar.gz on my 
Linux system;
Linux localhost.localdomain 2.4.22-1.2115.nptlsmp #1 SMP Wed Oct 29 15:30:09 EST 2003 i686 i686 i386
GNU/Linux
 
 
gcc  IN MY SYSTEM: 
 
g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enab
le-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=
i386-redhat-linux
Thread model: posix
gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
 
 
 
 
I have compiled following codes (demo.cpp),  g++ -o demo demo.cpp
 
 
#include <iostream>
#include <vector>
#include <string>
 
#include <cgicc/Cgicc.h>
#include <cgicc/HTTPHTMLHeader.h>
#include <cgicc/HTMLClasses.h>
 
using namespace std;
using namespace cgicc;
 
int main(int argc, char **argv)
{
    try {
        cgicc::Cgicc cgi;
 
        // Send HTTP header
        cout << HTTPHTMLHeader() << endl;
 
        // Set up the HTML document
        cout << html() << head(title("Cgicc example")) << endl;
        cout << body() << endl;
 
        // Print out the submitted element
        form_iterator name = cgi.getElement("name");
        if (name != cgi.getElements().end()) {
            cout << "Your name: " << **name << endl;
        }
 
        // Close the HTML document
        cout << body() << html();
    }
    catch (exception& e) {
        // handle any errors - omitted for brevity
    }
 
}
 
////////////////////////////////////////////////////////////////////
 
Thanks in advance.
 
 
 
 
Error messages:
 
address@hidden ornekler]$ g++ -o demo demo.cpp
/tmp/ccprArQa.o(.text+0x22): In function `main':
: undefined reference to `cgicc::Cgicc::Cgicc[in-charge](cgicc::CgiInput*)'
/tmp/ccprArQa.o(.text+0x3f): In function `main':
: undefined reference to `cgicc::HTTPHTMLHeader::HTTPHTMLHeader[in-charge]()'
/tmp/ccprArQa.o(.text+0x53): In function `main':
: undefined reference to `cgicc::operator<<(std::basic_ostream<char, std::char_traits<char> >&, cgic
c::MStreamable const&)'
/tmp/ccprArQa.o(.text+0x88): In function `main':
: undefined reference to `cgicc::HTTPHTMLHeader::~HTTPHTMLHeader [in-charge]()'
/tmp/ccprArQa.o(.text+0xab): In function `main':
: undefined reference to `cgicc::HTTPHTMLHeader::~HTTPHTMLHeader [in-charge]()'
/tmp/ccprArQa.o(.text+0x142): In function `main':
: undefined reference to `cgicc::operator<<(std::basic_ostream<char, std::char_traits<char> >&, cgic
c::MStreamable const&)'
/tmp/ccprArQa.o(.text+0x14b): In function `main':
: undefined reference to `cgicc::operator<<(std::basic_ostream<char, std::char_traits<char> >&, cgic
c::MStreamable const&)'
/tmp/ccprArQa.o(.text+0x304): In function `main':
: undefined reference to `cgicc::operator<<(std::basic_ostream<char, std::char_traits<char> >&, cgic
c::MStreamable const&)'
/tmp/ccprArQa.o(.text+0x3b4): In function `main':
: undefined reference to `cgicc::Cgicc::getElement(std::basic_string<char, std::char_traits<char>, s
td::allocator<char> > const&)'
/tmp/ccprArQa.o(.text+0x46a): In function `main':
: undefined reference to `cgicc::Cgicc::getElements() const'
/tmp/ccprArQa.o(.text+0x4ca): In function `main':
: undefined reference to `cgicc::FormEntry::operator*() const'
/tmp/ccprArQa.o(.text+0x58c): In function `main':
: undefined reference to `cgicc::operator<<(std::basic_ostream<char, std::char_traits<char> >&, cgic
c::MStreamable const&)'
/tmp/ccprArQa.o(.text+0x595): In function `main':
: undefined reference to `cgicc::operator<<(std::basic_ostream<char, std::char_traits<char> >&, cgic
c::MStreamable const&)'
/tmp/ccprArQa.o(.text+0x659): In function `main':
: undefined reference to `cgicc::Cgicc::~Cgicc [in-charge]()'
/tmp/ccprArQa.o(.text+0x679): In function `main':
: undefined reference to `cgicc::Cgicc::~Cgicc [in-charge]()'
/tmp/ccprArQa.o(.gnu.linkonce.t._ZN5cgicc18HTMLBooleanElementINS_7htmlTagEEC1Ev+0x15): In function `
cgicc::HTMLBooleanElement<cgicc::htmlTag>::HTMLBooleanElement[in-charge]()':
: undefined reference to `cgicc::HTMLElement::HTMLElement[not-in-charge](cgicc::HTMLAttributeList co
nst*, cgicc::HTMLElement const*, std::basic_string<char, std::char_traits<char>, std::allocator<char
> > const*, cgicc::HTMLElement::EElementType)'
/tmp/ccprArQa.o(.gnu.linkonce.t._ZN5cgicc18HTMLBooleanElementINS_7htmlTagEED1Ev+0x16): In function `
cgicc::HTMLBooleanElement<cgicc::htmlTag>::~HTMLBooleanElement [in-charge]()':
: undefined reference to `cgicc::HTMLElement::~HTMLElement [not-in-charge]()'
/tmp/ccprArQa.o(.gnu.linkonce.t._ZN5cgicc18HTMLBooleanElementINS_8titleTagEEC1ERKSs+0x16): In functi
on `cgicc::HTMLBooleanElement<cgicc::titleTag>::HTMLBooleanElement[in-charge](std::basic_string<char
, std::char_traits<char>, std::allocator<char> > const&)':
: undefined reference to `cgicc::HTMLElement::HTMLElement[not-in-charge](cgicc::HTMLAttributeList co
nst*, cgicc::HTMLElement const*, std::basic_string<char, std::char_traits<char>, std::allocator<char
> > const*, cgicc::HTMLElement::EElementType)'
/tmp/ccprArQa.o(.gnu.linkonce.t._ZN5cgicc18HTMLBooleanElementINS_8titleTagEED1Ev+0x16): In function
`cgicc::HTMLBooleanElement<cgicc::titleTag>::~HTMLBooleanElement [in-charge]()':
: undefined reference to `cgicc::HTMLElement::~HTMLElement [not-in-charge]()'
/tmp/ccprArQa.o(.gnu.linkonce.t._ZN5cgicc18HTMLBooleanElementINS_7headTagEEC1ERKNS_11HTMLElementE+0x
16): In function `cgicc::HTMLBooleanElement<cgicc::headTag>::HTMLBooleanElement[in-charge](cgicc::HT
MLElement const&)':
: undefined reference to `cgicc::HTMLElement::HTMLElement[not-in-charge](cgicc::HTMLAttributeList co
nst*, cgicc::HTMLElement const*, std::basic_string<char, std::char_traits<char>, std::allocator<char
> > const*, cgicc::HTMLElement::EElementType)'
/tmp/ccprArQa.o(.gnu.linkonce.t._ZN5cgicc18HTMLBooleanElementINS_7headTagEED1Ev+0x16): In function `
cgicc::HTMLBooleanElement<cgicc::headTag>::~HTMLBooleanElement [in-charge]()':
: undefined reference to `cgicc::HTMLElement::~HTMLElement [not-in-charge]()'
/tmp/ccprArQa.o(.gnu.linkonce.t._ZN5cgicc18HTMLBooleanElementINS_7bodyTagEEC1Ev+0x15): In function `
cgicc::HTMLBooleanElement<cgicc::bodyTag>::HTMLBooleanElement[in-charge]()':
: undefined reference to `cgicc::HTMLElement::HTMLElement[not-in-charge](cgicc::HTMLAttributeList co
nst*, cgicc::HTMLElement const*, std::basic_string<char, std::char_traits<char>, std::allocator<char
> > const*, cgicc::HTMLElement::EElementType)'
/tmp/ccprArQa.o(.gnu.linkonce.t._ZN5cgicc18HTMLBooleanElementINS_7bodyTagEED1Ev+0x16): In function `
cgicc::HTMLBooleanElement<cgicc::bodyTag>::~HTMLBooleanElement [in-charge]()':
: undefined reference to `cgicc::HTMLElement::~HTMLElement [not-in-charge]()'
/tmp/ccprArQa.o(.gnu.linkonce.r._ZTVN5cgicc18HTMLBooleanElementINS_7bodyTagEEE+0x10): undefined refe
rence to `cgicc::HTMLElement::render(std::basic_ostream<char, std::char_traits<char> >&) const'
/tmp/ccprArQa.o(.gnu.linkonce.r._ZTVN5cgicc18HTMLBooleanElementINS_7headTagEEE+0x10): undefined refe
rence to `cgicc::HTMLElement::render(std::basic_ostream<char, std::char_traits<char> >&) const'
/tmp/ccprArQa.o(.gnu.linkonce.r._ZTVN5cgicc18HTMLBooleanElementINS_8titleTagEEE+0x10): undefined ref
erence to `cgicc::HTMLElement::render(std::basic_ostream<char, std::char_traits<char> >&) const'
/tmp/ccprArQa.o(.gnu.linkonce.r._ZTVN5cgicc18HTMLBooleanElementINS_7htmlTagEEE+0x10): undefined refe
rence to `cgicc::HTMLElement::render(std::basic_ostream<char, std::char_traits<char> >&) const'
/tmp/ccprArQa.o(.gnu.linkonce.t._ZN5cgicc18HTMLBooleanElementINS_7htmlTagEED0Ev+0x16): In function `
cgicc::HTMLBooleanElement<cgicc::htmlTag>::~HTMLBooleanElement [in-charge deleting]()':
: undefined reference to `cgicc::HTMLElement::~HTMLElement [not-in-charge]()'
/tmp/ccprArQa.o(.gnu.linkonce.t._ZN5cgicc18HTMLBooleanElementINS_8titleTagEED0Ev+0x16): In function
`cgicc::HTMLBooleanElement<cgicc::titleTag>::~HTMLBooleanElement [in-charge deleting]()':
: undefined reference to `cgicc::HTMLElement::~HTMLElement [not-in-charge]()'
/tmp/ccprArQa.o(.gnu.linkonce.t._ZN5cgicc18HTMLBooleanElementINS_7headTagEED0Ev+0x16): In function `
cgicc::HTMLBooleanElement<cgicc::headTag>::~HTMLBooleanElement [in-charge deleting]()':
: undefined reference to `cgicc::HTMLElement::~HTMLElement [not-in-charge]()'
/tmp/ccprArQa.o(.gnu.linkonce.t._ZN5cgicc18HTMLBooleanElementINS_7bodyTagEED0Ev+0x16): In function `
cgicc::HTMLBooleanElement<cgicc::bodyTag>::~HTMLBooleanElement [in-charge deleting]()':
: undefined reference to `cgicc::HTMLElement::~HTMLElement [not-in-charge]()'
/tmp/ccprArQa.o(.gnu.linkonce.r._ZTIN5cgicc18HTMLBooleanElementINS_7htmlTagEEE+0x8): undefined refer
ence to `typeinfo for cgicc::HTMLElement'
/tmp/ccprArQa.o(.gnu.linkonce.r._ZTIN5cgicc18HTMLBooleanElementINS_8titleTagEEE+0x8): undefined refe
rence to `typeinfo for cgicc::HTMLElement'
/tmp/ccprArQa.o(.gnu.linkonce.r._ZTIN5cgicc18HTMLBooleanElementINS_7headTagEEE+0x8): undefined refer
ence to `typeinfo for cgicc::HTMLElement'
/tmp/ccprArQa.o(.gnu.linkonce.r._ZTIN5cgicc18HTMLBooleanElementINS_7bodyTagEEE+0x8): undefined refer
ence to `typeinfo for cgicc::HTMLElement'
/tmp/ccprArQa.o(.gnu.linkonce.t._ZN5cgicc18HTMLBooleanElementINS_7htmlTagEEC1ERKS2_+0x10): In functi
on `cgicc::HTMLBooleanElement<cgicc::htmlTag>::HTMLBooleanElement[in-charge](cgicc::HTMLBooleanEleme
nt<cgicc::htmlTag> const&)':
: undefined reference to `cgicc::HTMLElement::HTMLElement[not-in-charge](cgicc::HTMLElement const&)'
/tmp/ccprArQa.o(.gnu.linkonce.t._ZN5cgicc18HTMLBooleanElementINS_8titleTagEEC1ERKS2_+0x10): In funct
ion `cgicc::HTMLBooleanElement<cgicc::titleTag>::HTMLBooleanElement[in-charge](cgicc::HTMLBooleanEle
ment<cgicc::titleTag> const&)':
: undefined reference to `cgicc::HTMLElement::HTMLElement[not-in-charge](cgicc::HTMLElement const&)'
/tmp/ccprArQa.o(.gnu.linkonce.t._ZN5cgicc18HTMLBooleanElementINS_7headTagEEC1ERKS2_+0x10): In functi
on `cgicc::HTMLBooleanElement<cgicc::headTag>::HTMLBooleanElement[in-charge](cgicc::HTMLBooleanEleme
nt<cgicc::headTag> const&)':
: undefined reference to `cgicc::HTMLElement::HTMLElement[not-in-charge](cgicc::HTMLElement const&)'
/tmp/ccprArQa.o(.gnu.linkonce.t._ZN5cgicc18HTMLBooleanElementINS_7bodyTagEEC1ERKS2_+0x10): In functi
on `cgicc::HTMLBooleanElement<cgicc::bodyTag>::HTMLBooleanElement[in-charge](cgicc::HTMLBooleanEleme
nt<cgicc::bodyTag> const&)':
: undefined reference to `cgicc::HTMLElement::HTMLElement[not-in-charge](cgicc::HTMLElement const&)'
collect2: ld returned 1 exit status
 
 
 



***********************************************************************

Bu elektronik posta ve onunla iletilen butun dosyalar sadece gondericisi tarafindan almasi amaclanan yetkili gercek ya da tuzel kisinin kullanimi icindir.Eger soz konusu yetkili alici degilseniz bu elektronik postanin icerigini aciklamaniz,kopyalamaniz, yonlendirmeniz ve kullanmaniz kesinlikle yasaktir ve bu elektronik postayi derhal silmeniz gerekmektedir.

TURKCELL bu mesajin icerdigi bilgilerin dogrulugu veya eksiksiz oldugu konusunda herhangi bir garanti vermemektedir. Bu nedenle bu bilgilerin ne sekilde olursa olsun iceriginden, iletilmesinden, alinmasindan ve saklanmasindan sorumlu degildir. Bu mesajdaki gorusler yalnizca gonderen kisiye aittir ve TURKCELL'in goruslerini yansitmayabilir.

Bu e-posta bilinen butun bilgisayar viruslerine karsi taranmistir.

************************************************************************

This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are hereby notified that any dissemination, forwarding, copying or use of any of the information is strictly prohibited, and the e-mail should immediately be deleted.

TURKCELL makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for the information contained therein or for the information transmission, reception, storage or use of such in any way whatsoever.The opinions expressed in this message belong to sender alone and may not necessarily reflect the opinions of TURKCELL.

This e-mail has been scanned for all known computer viruses.

************************************************************************


reply via email to

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