Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

99
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda