expected unqualified-id before 'namespace'
Added by Rogério Araújo almost 15 years ago
Hi!
I'm trying to follow the examples available at the site to write my own example, but everytime when I try to compile the sources I get the following error:
/usr/local/include/Wt/WBreak:12: error: expected unqualified-id before 'namespace'
Here's my header file:
#ifndef LISTAR_CLIENTE_H_
#define LISTAR_CLIENTE_H_
#include <Wt/WContainerWidget>
#include <Wt/WTableView>
#include "ListarCliente.h"
class ListarCliente : public Wt::WContainerWidget
{
public:
ListarCliente();
private:
Wt::WTableView *_listaClientes;
}
#endif
And class implementation:
#include "ListarCliente.h"
#include <Wt/WBreak>
#include <Wt/WText>
using namespace Wt;
ListarCliente::ListarCliente()
: WContainerWidget()
{
//setTitle(tr("lista_clientes"));
new WText("<big><big>" + tr("lista_clientes") + "</big></big>", this);
new WBreak(this);
new WBreak(this);
new WBreak(this);
}
Any ideas?
Replies (2)
RE: expected unqualified-id before 'namespace' - Added by Koen Deforche almost 15 years ago
Hey,
The error message is not really helpful, but I have learned to associate this error message with missing a semi-colon after your class definition of ListarCliente.
Regards,
koen
RE: expected unqualified-id before 'namespace' - Added by Rogério Araújo almost 15 years ago
That's it! Thanks!