Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

96
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!