Project

General

Profile

Error trying to connect to Postgres

Added by Victor Manuel Gonzalez Barrios over 2 years ago

I try to make my first connection to Postgres and I get the following error...


09:53:05: Running steps for project qtwt...
09:53:05: Starting: "/usr/bin/cmake" --build . --target all
[ 25%] Linking CXX executable qtwt.wt
CMakeFiles/qtwt.wt.dir/init/principal.cpp.o: In function Principal::Principal(Wt::WEnvironment const&)':
/home/vmgonzalez/QtCreator/qtwt/src/init/principal.cpp:8: undefined reference to
Wt::Dbo::backend::Postgres::Postgres(std::cxx11::basic_string, std::allocator > const&)'
/home/vmgonzalez/QtCreator/qtwt/src/init/principal.cpp:9: undefined reference to Wt::Dbo::Session::Session()'
/home/vmgonzalez/QtCreator/qtwt/src/init/principal.cpp:10: undefined reference to
Wt::Dbo::Session::setConnection(std::unique_ptr >)'
/home/vmgonzalez/QtCreator/qtwt/src/init/principal.cpp:11: undefined reference to `Wt::Dbo::Session::execute(std::
cxx11::basic_string, std::allocator > const&)'
/home/vmgonzalez/QtCreator/qtwt/src/init/principal.cpp:11: undefined reference to `Wt::Dbo::Call::~Call()'
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/qtwt.wt.dir/build.make:122: src/qtwt.wt] Error 1
make[1]: *** [CMakeFiles/Makefile2:86: src/CMakeFiles/qtwt.wt.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
09:53:05: The process "/usr/bin/cmake" exited with code 2.
Error while building/deploying project qtwt (kit: Desktop Qt 5.14.2 GCC 64bit)
When executing step "CMake Build"
09:53:05: Elapsed time: 00:00.