Re: FreeBSD Problem
"Alexander J. Oss" <[email protected]> Sun, 2 Nov 2003 14:54:52 -0500
| Newsgroups | gmane.comp.gcc.cgicc.general |
|---|---|
| Message-ID | <006901c3a17b$2e8f04c0$11bffea9@puter> |
Worst case, you can use an iostream and dump log messages. I think it'll depend on your development environment. ----- Original Message ----- From: "Guilherme A. Mendes" <[email protected]> To: <[email protected]> Cc: <[email protected]> Sent: Tuesday, October 28, 2003 9:45 PM Subject: Re: [help-cgicc] FreeBSD Problem Sorry I'm just a beginner...how can I trace it? If you can help me by ICQ (#23662971), thank you > Hm. Can you trace through the cgicc library execution to find out which > statement is generating the bus error? > > ----- Original Message ----- > From: "Guilherme A. Mendes" <[email protected]> > To: "Alexander J. Oss" <[email protected]> > Cc: <[email protected]> > Sent: Tuesday, October 28, 2003 6:21 AM > Subject: Re: [help-cgicc] FreeBSD Problem > > > They are not equal. The code below runs correctly on Linux. > Are there other ways to parse the POST/GET variables? > > > Em Ter, 2003-10-28 às 02:41, Alexander J. Oss escreveu: > > 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 > > > > > > > > > > _______________________________________________ > > 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 > > > > > _______________________________________________ > 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