0

I am using cpm.cmake to install the dependencies for drogon on MAC (Intel)

Postgresql was installed using

brew install postgresql

Also installed the libpq

brew install liqpq


include(cmake/CPM.cmake)
CPMAddPackage(
        NAME drogon
        VERSION 1.9.7
        GITHUB_REPOSITORY drogonframework/drogon
        GIT_TAG v1.9.7
)

This downloads the drogon, but on running make it throws many exceptions for pgBatchConnection

/build/_deps/drogon-src/orm_lib/src/postgresql_impl/PgBatchConnection.cc:84:7: error: member initializer 'autoBatch_' does not name a non-static data member or base class

build/_deps/drogon-src/orm_lib/src/postgresql_impl/PgBatchConnection.cc:126:17: error: use of undeclared identifier 'sendBatchedSql'

4
  • What happens if you download and build drogon without CPM? Any compile errors you get will also depend on the version of libpq you installed Commented Oct 14, 2024 at 12:03
  • I built drogon from source (using cmake) and that worked Commented Oct 15, 2024 at 5:30
  • Same version? If so, you will have to figure out what CPM does differently Commented Oct 15, 2024 at 6:39
  • yeah, it's same version. Will look into it. Thanks :) Commented Oct 16, 2024 at 13:35

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.