Re: LIBhmg-64.a / LibLibPq-64.a
Posted: Sun Sep 08, 2019 7:59 am
Thanks!
Serge
Serge
Exclusive forum for HMG, a Free / Open Source xBase WIN32/64 Bits / GUI Development System
http://mail.hmgforum.com/
Code: Select all
c:\hmg.3.4.4\HARBOUR-64\bin\hbmk2.exe -oLibpq-64 -hblib -Id:\PG\include\ -Ld:\ALASKA\_hrb_dev\HB3\64BIT\LIB -llibpq postgres.c rddcopy.c tpostgre.c
or
c:\hmg.3.4.4\MinGW-64\bin\ar rc .\liblibpQ-64.a postgres.o rddcopy.o tpostgre.o d:\ALASKA\_hrb_dev\HB3\64BIT\LIB\libpq.LIB
Code: Select all
libpaths=c:\hmg.3.4.4\LIB-64
libs=Libpq-64
mt=yes
so what are missing as it work when link files direct to EXE...
C:/hmg.3.4.4/lib-64\libLibpq-64.a(postgres.o):postgres.c:(.text+0x2857): undefined reference to `PQuntrace'
collect2.exe: error: ld returned 1 exit status
hbmk2[DBF2PG3]: Error: Running linker. 1
gcc.exe R:/Temp/hbmk_0h8zda.dir/DBF2PG2.o R:/Temp/hbmk_0h8zda.dir/PGRDD.o R:/Temp/hbmk_0h8zda.dir/hbmk_h7aqw3.o D:/ALASKA/_hrb_dev/HB3/DBF2PG/64/_temp.o -pthread -static-libgcc -static-libstdc++ -static -lpthread -mwindows -Wl,--start-group -l"hmg-64" -l"crypt-64" -l"edit-64" -l"editex-64" -l"graph-64" -l"ini-64" -l"report-64" -l"hfcl-64" -lmsvfw32 -lvfw32 -l"hbvpdf-64" -lhbct -lhbwin -lhbmzip -lminizip -lhbmemio -lhbmisc -lhbtip -lsqlite3 -lhbsqlit3 -lsddodbc -lrddsql -lhbodbc -lodbc32 -lhbhpdf -lhbnetio -lxhb -lpng -llibhpdf -lhbzebra -l"Libpq-64" -lhbextern -lhbdebug -lhbvmmt -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainwin -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oDBF2PG3.exe -L"C:/hmg.3.4.4/harbour-64/lib/win/mingw64" -L"C:/hmg.3.4.4/lib-64" -L"c:/hmg.3.4.4/LIB-64"
Code: Select all
harbour.exe tpostgre.prg -n -m -w -es2 -gc0 -ic:\hmg.3.4.4\INCLUDE -ic:\hmg.3.4.4\HARBOUR-64\include
harbour.exe PGRDD.PRG -n -m -w -es2 -gc0 -iC:\hmg.3.4.4\include -ic:\hmg.3.4.4\HARBOUR-64\include
harbour.exe DBF2PG2.PRG -n -m -w -es2 -gc0 -iC:\hmg.3.4.4\include -ic:\hmg.3.4.4\HARBOUR-64\include
Try using .hbp 'project' file and write app prgs names in it, like .xpj or Xbase++.
my Problem is that how to include LibPQ.LIB of PostgreSQL into Project *.HBP
also Hintskipping incompatible C:/hmg.3.4.4/lib-64\liblibpq-64.a when searching for -llibpq-64
does not work while it point to 32 Bit LIBHint: Install package hbpgsql and add option 'hbpgsql.hbc' for missing
c:\hmg.3.4.4\MinGW-64\bin\dlltool.exe: libpq.DLL: no symbolsCode: Select all
c:\hmg.3.4.4\MinGW-64\bin\dlltool.exe -z libpq.def --export-all-symbol libpq.DLL
Code: Select all
c:\hmg.3.4.4\MinGW-64\bin\dlltool -d libpq.def -l liblibpq-64.a
Code: Select all
hbmk2.exe TEST.PRG c:\hmg.3.4.4\LIB-64\Liblibpq-64.a
do every Postgre Version need "own" Import LIBdanielmaximiliano wrote: ↑Tue Sep 03, 2019 1:14 pm Download and copy folder c:\hmg.3.4.4\LIB-64
liblibpq-64.rar
rename liblibpq-64.rar to liblibpq-64.a
Ok it is XP (32 Bit ?) and LibPQ.DLL v8.3.5 but the Problem seem me the same with 64 Bit."Building PostgreSQL client library using MinGW under WinXP SP3"
https://pgolub.wordpress.com/2008/12/15 ... winxp-sp3/