[Top][All Lists]

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

[help-cgicc] Cross building cgicc, getElements() app link error

From: John Faith
Subject: [help-cgicc] Cross building cgicc, getElements() app link error
Date: Tue, 31 Aug 2010 10:17:30 -0700

I built cgicc 3.2.8 using 2009q1 CodeSourcery ARM tools in
OpenEmbedded which built fine.  I was able to build and run the app
code below, but when I enable the getElements() section, I get a
linker error:
  hello.cpp:(.text+0x198): undefined reference to
`cgicc::Cgicc::getElements() const'

, which seems odd since getElements) is defined as inline in
cgicc/Cgicc.h.  I built the same app for x86 using g++ 4.4.1 and it
linked and ran fine.  Not sure if this is an issue with g++ or cgicc,
or can be patched in cgicc.  Anyone see this before?


int main(int argc, char **argv)
    Cgicc cgi;
    cout << HTTPHTMLHeader() << endl;
    form_iterator name = cgi.getElement("name");
    //if(name != cgi.getElements().end()) {
    //    cout << "Your name: " << **name << endl;

    return 0;

reply via email to

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