Re: FreeBSD Problem
"Alexander J. Oss" <[email protected]> Mon, 27 Oct 2003 23:41:05 -0500
| Newsgroups | gmane.comp.gcc.cgicc.general |
|---|---|
| Message-ID | <001401c39d0d$b3157750$11bffea9@puter> |
Have you confirmed that your form_iterator is not equal to CGI.getElements.end()? You may be dereferencing an invalid iterator. ----- Original Message ----- From: "Guilherme A. Mendes" <[email protected]> To: <[email protected]> Cc: <[email protected]> Sent: Monday, October 27, 2003 9:31 PM Subject: Re: [help-cgicc] FreeBSD Problem #include <iostream> #include "myHeader.h" using namespace std; using namespace cgicc; int main(int argc, char **argv) { Cgicc CGI; cout << "<B>TEST!!! <BR><BR>"; cout << CGI.getVersion() << "<BR><BR>"; cout << CGI.getEnvironment().getRequestMethod() << "<br><br>"; form_iterator name = CGI.getElement("c"); cout << "valor: " << **name << endl; return 0; } When I run it: --------- Content-Type: text/html Bus error (core dumped) --------- I'm starting cgicc in the file "myHeader.h". I tried to run a example from cgicc site, but it didnt work out. Thanks, GMendes > Can you post the entire code (or a minimal program that repr oduces the > error)? > > ----- Original Message ----- > From: "Guilherme A. Mendes" <[email protected]> > To: <[email protected]> > Sent: Monday, October 27, 2003 8:22 AM > Subject: [help-cgicc] FreeBSD Problem > > > Hi all, > > The code below doesnt work on FreeBSD (4.9-RELEASE) gcc 2.9: > > const_form_iterator name = formData.getElement("name"); > cout << "Your name is " << **name << '.' << br() << endl; > > I got 'bus error' when I try to run it. It works right on Li nux (Debian, > 2.4.18). > The script crashes when find **name. > > Thanks in advance, > GMendes > > > > _______________________________________________ > help-cgicc mailing list > [email protected] > http://mail.gnu.org/mailman/listinfo/help-cgicc > > > > > _______________________________________________ > help-cgicc mailing list > [email protected] > http://mail.gnu.org/mailman/listinfo/help-cgicc > __________________________________________ ..: Guilherme A. Mendes ..: Desenv. WEB ..: menndes@u... --- Acabe com aquelas janelinhas que pulam na sua tela. AntiPop-up UOL - à grátis! http://antipopup.uol.com.br _______________________________________________ help-cgicc mailing list [email protected] http://mail.gnu.org/mailman/listinfo/help-cgicc