7/30/2023 0 Comments Termux postgresqlSelecting previously unselected package libclang-common-11-dev. Selecting previously unselected package libobjc-10-dev:arm64. Selecting previously unselected package libobjc4:arm64. Selecting previously unselected package libgc1:arm64. Selecting previously unselected package libclang-cpp11. 248498 files and directories currently installed.) Selecting previously unselected package binfmt-support. The following NEW packages will be installed:ġ upgraded, 18 newly installed, 0 to remove and 1 not upgraded.Īfter this operation, 353 MB of additional disk space will be used. Libz3-dev llvm-11 llvm-11-dev llvm-11-runtimeĬlang-11-doc libomp-11-doc postgresql-doc-13 Libobjc4 libomp-11-dev libomp5-11 libpfm4 libpq-dev Libclang-cpp11 libclang1-11 libgc1 libobjc-10-dev The following additional packages will be installed:īinfmt-support clang-11 libclang-common-11-dev Use 'sudo apt autoremove' to remove them. Ruby-molinillo ruby-net-http-persistent ruby-thor Qt5-gtk2-platformtheme ruby-connection-pool Libwireshark13 libwiretap10 libwsutil11 libxcb-util0 Libpython3.8-stdlib libqt5opengl5 libsane Libpython3.8 libpython3.8-dev libpython3.8-minimal Libllvm10 libmicrohttpd12 libperl5.30 libplymouth4 The following packages were automatically installed and are no longer required:ĭnsutils libcapstone3 libgps26 libjs-sizzle Sudo apt-get install postgresql-13 postgresql-server-dev-13 I have tried using the -I option all around (along with all of the other options), but nothing seems to work.Hello i have a very big problem, can somebody help me to fix this kind of issue? Main.c:(.text+0x87c): undefined reference to `ECPGget_sqlca' Main.c:(.text+0x85c): undefined reference to `ECPGdisconnect' Main.c:(.text+0x843): undefined reference to `ECPGget_sqlca' Main.c:(.text+0x83e): undefined reference to `ECPGdo' The compiler output instead looks like the following (once again, just a small sampling): main.c:(.text+0x5c6): undefined reference to `ECPGconnect' When I change the order as follows: gcc -I/usr/include/postgresql -static -lecpg -lpq -lpgtypes -o program_name main.o (.text+0xd2): undefined reference to `pthread_getspecific' (.text+0x376): undefined reference to `pthread_setspecific' (.text+0x2c6): undefined reference to `pthread_setspecific' (.text+0xc3): undefined reference to `pthread_once' There are so many, but here is a small sampling: /usr/lib/gcc/x86_64-linux-gnu/4.6/././././lib/libecpg.a(descriptor.o): The compiler, however, gives me a long list of "undefined reference" errors as output. When I try to link to the static libraries, I am using the following command: gcc -static main.o -lecpg -lpq -lpgtypes -I/usr/include/postgresql -o program_name The program builds fine when I use the following command with the dynamic libraries: (The -I directory has to be included for some of the Postgresql functions I'm using) gcc main.o -lecpg -lpq -lpgtypes -I/usr/include/postgresql -o program_name My executable needs to be static so that the binary can be portable so that users will not have to install the libraries onto their systems to use it. I have tried adding the -L option as their path anyway, but I get the same result. The static libraries, libecpg.a, libpq.a, libpgtypes.a, are all located in the same place as their dynamic versions, /usr/lib. I am trying to build a static executable of a C program which requires the following libraries from the Postgresql libecpg-dev package: libecpg, libpq, and libpgtypes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |