Replies: 2 comments 4 replies
-
@fuadsmed was this ever resolved? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to use the library libpqxx in my plc next project, and i used the toolchain of the plc next and after i followed the instructions how to build my library:
$env:ARP_TOOLCHAIN_ROOT = "C:/SDKs/AXCF2152/2024.0"
cd C:\Libraries\libpqxx\build_arm cmake -DCMAKE_TOOLCHAIN_FILE=C:/SDKs/AXCF2152/2024.0/toolchain.cmake -DCMAKE_INSTALL_PREFIX=C:/Libraries/libpqxx_arm -DPostgreSQL_INCLUDE_DIR="C:/Program Files/PostgreSQL/16/include" -DPostgreSQL_LIBRARY="C:/Program Files/PostgreSQL/16/lib/libpq.lib" ..
cmake --build . --config Release
After the last command i got this at the end:
libpqxx-7.9.a(connection.obj) : error LNK2019: unresolved external symbol __imp_ioctlsocket referenced in function "pub lic: void __cdecl pqxx::connection::set_blocking(bool)& " (?set_blocking@connection@pqxx@@QEGAAX_N@Z) [C:\Libraries\lib pqxx\build_arm\test\runner.vcxproj] libpqxx-7.9.a(connection.obj) : error LNK2019: unresolved external symbol __imp_WSAGetLastError referenced in function "public: void __cdecl pqxx::connection::set_blocking(bool)& " (?set_blocking@connection@pqxx@@QEGAAX_N@Z) [C:\Libraries \libpqxx\build_arm\test\runner.vcxproj] libpqxx-7.9.a(wait.obj) : error LNK2001: unresolved external symbol __imp_WSAGetLastError [C:\Libraries\libpqxx\build_a rm\test\runner.vcxproj] libpqxx-7.9.a(wait.obj) : error LNK2019: unresolved external symbol __imp_WSAPoll referenced in function "void __cdecl pqxx::internal::wait_fd(int,bool,bool,unsigned int,unsigned int)" (?wait_fd@internal@pqxx@@YAXH_N0II@Z) [C:\Libraries\l ibpqxx\build_arm\test\runner.vcxproj] C:\Libraries\libpqxx\build_arm\test\Release\runner. : fatal error LNK1120: 3 unresolved externals [C:\Libraries\libpqxx \build_arm\test\runner.vcxproj]
i tried to change the CMakeLists and everything, but nothing happened.
i tried the instructions so i can include the library into my plc next project, because i cant build my project without the proper library.
Beta Was this translation helpful? Give feedback.
All reactions