Hi guys: I chose cgicc thinking that it would help me get my project done, but i am faced with a lotta problems right now. If you have any idea as to how to fix this, please please let me know. thank you in advance.
I tried to compile the tutorial sample, http://www.cgicc.org/doc/cgicc_tutorial.html, but saw tons of error msg: Undefined first referenced symbol in file cgicc::HTTPHTMLHeader::HTTPHTMLHeader[in-charge]()/var/tmp//ccyRqqBg.o cgicc::operator<<(std::basic_ostream<char, std::char_traits<char> >&, cgicc::MStreamable const&)/var/tmp//ccyRqqBg.o cgicc::Cgicc::~Cgicc [in-charge]() /var/tmp//ccyRqqBg.o cgicc::Cgicc::Cgicc[in-charge](cgicc::CgiInput*)/var/tmp//ccyRqqBg.o cgicc::Cgicc::getElement(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)/var/tmp//ccyRqqBg.o cgicc::HTMLElement::HTMLElement[not-in-charge](cgicc::HTMLAttributeList const*, cgicc::HTMLElement const*, std::basic_string<char, std::char_traits<char>, std:: allocator<char> > const*, cgicc::HTMLElement::EElementType)/var/tmp//ccyRqqBg.o typeinfo for cgicc::HTMLElement /var/tmp//ccyRqqBg.o cgicc::HTMLElement::HTMLElement[not-in-charge](cgicc::HTMLElement const&)/var/tmp//ccyRqqBg.o cgicc::FormEntry::operator*() const /var/tmp//ccyRqqBg.o cgicc::Cgicc::getElements() const /var/tmp//ccyRqqBg.o cgicc::HTMLElement::~HTMLElement [not-in-charge]()/var/tmp//ccyRqqBg.o cgicc::HTMLElement::render(std::basic_ostream<char, std::char_traits<char> >&) const/var/tmp//ccyRqqBg.o cgicc::HTTPHTMLHeader::~HTTPHTMLHeader [in-charge]()/var/tmp//ccyRqqBg.o ld: fatal: Symbol referencing errors. No output written to a.out collect2: ld returned 1 exit status I am using a school Solaris server. The admin has installed cgicc for me. I am pretty sure I am compiling with the right command and right path bash-2.03$ g++ -I../cgicc/include/ hi.cpp The program hi.cpp is as follows: #include<iostream> #include<vector> #include<string> #include "cgicc/Cgicc.h" #include "cgicc/HTTPHTMLHeader.h" #include "cgicc/CgiInput.h" #include "cgicc/HTMLClasses.h" using namespace cgicc; using namespace std; int main(){ try{ //creates an instance of Cgicc Cgicc cgi; //Sent HTTP Header cout << HTTPHTMLHeader() << endl; //html tags cout << html() << head(title("hi")) << endl << body() << endl; // form_iterator name = cgi.getElement("name"); if( name != cgi.getElements().end() ){ cout << "Your name: " << **name << endl; } //html tag cout << body() << html(); }//end try catch (exception& e){ //exception } } _______________________________________________ help-cgicc mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-cgicc
