Re: FreeBSD Problem

"Guilherme A. Mendes" <[email protected]> Tue, 28 Oct 2003 00:31:14 -0200
Newsgroups gmane.comp.gcc.cgicc.general
Message-ID <[email protected]>
#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