help-cgicc
[Top][All Lists]
Advanced

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

Re: [help-cgicc] static linking of cgi


From: Anthony Bouvier
Subject: Re: [help-cgicc] static linking of cgi
Date: Sat, 31 Jan 2004 19:28:32 -0500


On Jan 31, 2004, at 5:48 PM, Cecil Westerhof wrote:

I would like to static link the cgicc library. I try this with
g++ -O2 -L/usr/lib/mysql/ -lmysqlclient /usr/lib/libcgicc.a select.o WebDB.o -o select

But then I get a lot of messages like:
WebDB.o: In function `WebDB::DisplayParameters(char const*, char const*)': /home/cecil/zzz/WebDB.cpp:60: undefined reference to `cgicc::HTMLElement::set(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

What am I doing wrong?

Are you sure it has to do with your linking? It might help to see WebDB.cpp around the offending line -- I'm curious how HTMLElement::set is being called with that signature, because I can't find a matching method in the Cgicc documentation.

I'm still a relative novice at C++, so pardon my ignorance, but the only two signatures I see for HTMLElement::set are:

HTMLElement& cgicc::HTMLElement::set ( const std::string & name, const std::string & value )

and

HTMLElement& cgicc::HTMLElement::set ( const std::string & name )

--
anthony bouvier
professional geek
anthony.bodhihouse.com





reply via email to

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