Issue in building project with pqxx #1873
Unanswered
sssawant-2291
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my project I have third party dependencies like ADS built from source for PLC communication, pqxx for postgreSQL connection and DB layer logic, etc.
abseil's example gets build fine with all dependencies as of now except pqxx
I am using GCC 13.1 and cpp std 20
It throws following error
In file included from /home/sssawant/Documents/test_log_example/abseil-cpp/absl/base/internal/raw_logging.h:27,
from /home/sssawant/Documents/test_log_example/abseil-cpp/absl/strings/internal/str_join_internal.h:47,
from /home/sssawant/Documents/test_log_example/abseil-cpp/absl/strings/str_join.h:59,
from /home/sssawant/Documents/test_log_example/src/hello.cpp:6:
/home/sssawant/Documents/test_log_example/abseil-cpp/absl/base/log_severity.h:82:58: error: return type ‘struct std::array<absl::LogSeverity, 4>’ is incomplete
82 | constexpr std::array<absl::LogSeverity, 4> LogSeverities() {
| ^
In file included from /home/sssawant/Documents/test_log_example/abseil-cpp/absl/strings/internal/str_join_internal.h:50:
/home/sssawant/Documents/test_log_example/abseil-cpp/absl/strings/str_cat.h: In instantiation of ‘struct absl::strings_internal::AlphaNumBuffer<16>’:
/home/sssawant/Documents/test_log_example/abseil-cpp/absl/strings/str_cat.h:618:19: required from here
/home/sssawant/Documents/test_log_example/abseil-cpp/absl/strings/str_cat.h:127:30: error: ‘absl::strings_internal::AlphaNumBuffer<max_size>::data’ has incomplete type
127 | std::array<char, max_size> data;
| ^~~~
In file included from /usr/include/c++/13/bits/uses_allocator_args.h:38,
from /usr/include/c++/13/bits/memory_resource.h:41,
from /usr/include/c++/13/string:58,
from /usr/include/pqxx/internal/encodings.hxx:16,
from /usr/include/pqxx/array.hxx:18,
from /usr/include/pqxx/array:4,
from /home/sssawant/Documents/test_log_example/src/hello.cpp:1:
/usr/include/c++/13/tuple:2005:45: note: declaration of ‘struct std::array<char, 16>’
2005 | template<typename _Tp, size_t _Nm> struct array;
| ^~~~~
make[3]: *** [CMakeFiles/test_logs_run.dir/build.make:76: CMakeFiles/test_logs_run.dir/src/hello.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:674: CMakeFiles/test_logs_run.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:681: CMakeFiles/test_logs_run.dir/rule] Error 2
make: *** [Makefile:124: test_logs_run] Error 2
I tried including at top already but of no use
can anyone have any idea ?
Beta Was this translation helpful? Give feedback.
All reactions