Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

101
Visualizações
Cannot find Postgres header while working with Wt c++

I'm currently working on Ubuntu 20.04 and I am building a web application with WebToolkit. I want to use a Postgresql database to store my data. I built Wt from source, following these steps.

Unfortunately, when I include the header file Wt/Dbo/backend/Postgres.h in my code, I get the following error

cannot open source file Wt/Dbo/backend/Postgres.h

Indeed, the directory Wt/Dbo/backend includes only Sqlite3.h and WDboSqlite3DllDefs.h.

How can I solve the problem?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

It seems you haven't build the Postres backend while building Wt from source. This may be due one of the following reasons:

  • ENABLE_POSTGRES is not checked while configuring Wt using CMake
  • Some external dependency, i.e. Postgres, is not met. This should be mentioned in the cmake output. It may be necessary to specify the Postgres directory in the POSTGRES_PREFIX variable of CMake.

Note that sqlite3 is the only backend which is supported without external dependencies.

Note that the same procedure should be followed for other database too, such as MySQL (or MariaDB), Firebird, ...

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda