help-cgicc
[Top][All Lists]
Advanced

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

Re: [help-cgicc] FreeBSD Problem


From: Guilherme A. Mendes
Subject: Re: [help-cgicc] FreeBSD Problem
Date: Tue, 28 Oct 2003 00:31:14 -0200

#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" <address@hidden>
> To: <address@hidden>
> 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
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-cgicc
>
>
>
>
> _______________________________________________
> help-cgicc mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-cgicc
>



__________________________________________
..: Guilherme A. Mendes
..: Desenv. WEB
..: address@hidden




---
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br





reply via email to

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