LIBhmg-64.a / LibLibPq-64.a
Moderator: Rathinagiri
- serge_girard
- Posts: 3173
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
- AUGE_OHR
- Posts: 2065
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: LIBhmg-64.a / LibLibPq-64.a
hi,
as i now know that is working that Way i like to ask how build a LIB instead of EXE
how to integrate it into HMG IDE so i need only to press F5
as i now know that is working that Way i like to ask how build a LIB instead of EXE
how to integrate it into HMG IDE so i need only to press F5
have fun
Jimmy
Jimmy
- AUGE_OHR
- Posts: 2065
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: LIBhmg-64.a / LibLibPq-64.a
i try to build LIB and i got some LIB.a ... but still get PQ* Error when use them
i have in *.HBC
both Version create LIB.a but both with same Error
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"
have fun
Jimmy
Jimmy
- AUGE_OHR
- Posts: 2065
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: LIBhmg-64.a / LibLibPq-64.a
hi,
i'm a harbour Newbiew so forgive my Question
i have compile 3 PRG where 1nd PRG contain CLASS TPQserver this Way
now when compile DBF2PG2.PRG, where i call TPQserver:New(), it does not compile ... missing TPQserver
CLASS TPQserver is in tpostgre.prg which have "transpile" before.
so what to include in DBF2PG2.PRG to get rid of Error
i'm a harbour Newbiew so forgive my Question
i have compile 3 PRG where 1nd PRG contain CLASS TPQserver this Way
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
CLASS TPQserver is in tpostgre.prg which have "transpile" before.
so what to include in DBF2PG2.PRG to get rid of Error
have fun
Jimmy
Jimmy
Re: LIBhmg-64.a / LibLibPq-64.a
Try using .hbp 'project' file and write app prgs names in it, like .xpj or Xbase++.
This will get rid of Error.
Regards,
Anand
- AUGE_OHR
- Posts: 2065
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: LIBhmg-64.a / LibLibPq-64.a
hi,
thx for Answer
i have try different Way to create a LibLibPQ-64.a and got some *.a ... but they all fail.
so i made all on Command line and i got working 64 Bit EXE.
---
i can work with it but it is not a Solution for all other using HMG IDE so i ask again how to build a 64 Bit Lib.a
thx for Answer
my Problem is that how to include LibPQ.LIB of PostgreSQL into Project *.HBP
i have try different Way to create a LibLibPQ-64.a and got some *.a ... but they all fail.
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
so i made all on Command line and i got working 64 Bit EXE.
---
i can work with it but it is not a Solution for all other using HMG IDE so i ask again how to build a 64 Bit Lib.a
have fun
Jimmy
Jimmy
- AUGE_OHR
- Posts: 2065
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: LIBhmg-64.a / LibLibPq-64.a
hi,
i got a Tip to use DLLTOOL of MING to create a "Import LIB"
http://www.mingw.org/wiki/CreateImportLibraries
Problem : i fail to create a *.DEF
i have a *.DEF from LIB2A Tool so i try thatliblibpq-64.a was create ... but after press F5 i still got PQ* Error
i also try this Waybut again PQ* Error
only when link 64 Bit LibPQ.LIB work ... but i can't use it this Way with HMG IDE.
does someone have a Idea
i got a Tip to use DLLTOOL of MING to create a "Import LIB"
http://www.mingw.org/wiki/CreateImportLibraries
Problem : i fail to create a *.DEF
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
i have a *.DEF from LIB2A Tool so i try that
Code: Select all
c:\hmg.3.4.4\MinGW-64\bin\dlltool -d libpq.def -l liblibpq-64.a
i also try this Way
Code: Select all
hbmk2.exe TEST.PRG c:\hmg.3.4.4\LIB-64\Liblibpq-64.a
only when link 64 Bit LibPQ.LIB work ... but i can't use it this Way with HMG IDE.
does someone have a Idea
have fun
Jimmy
Jimmy
- AUGE_OHR
- Posts: 2065
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: LIBhmg-64.a / LibLibPq-64.a
hi,
i ask while DLL / LIB seem from v11.5 and LibLibPQ.a seem not to work in my Environment with Postgre v9.5.
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
i ask while DLL / LIB seem from v11.5 and LibLibPQ.a seem not to work in my Environment with Postgre v9.5.
have fun
Jimmy
Jimmy
- AUGE_OHR
- Posts: 2065
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: LIBhmg-64.a / LibLibPq-64.a
hi,
i'm still struggle with 64 Bit LibLibPQ.a ...
now i found a Blog about
they point to a Tool called MSYS which is include in this Distribution
https://sourceforge.net/projects/mingw/files/
but again it seem me 32 Bit and i don't find MSYS in 64 Bit Version of MinGW.
can somebody tell me where i find 64 Bit Version of MSYS
---
did someone use BCC v7.x 64 Bit with harbour / HMG how to include it
i'm still struggle with 64 Bit LibLibPQ.a ...
now i found a Blog about
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/
they point to a Tool called MSYS which is include in this Distribution
https://sourceforge.net/projects/mingw/files/
but again it seem me 32 Bit and i don't find MSYS in 64 Bit Version of MinGW.
can somebody tell me where i find 64 Bit Version of MSYS
---
did someone use BCC v7.x 64 Bit with harbour / HMG how to include it
have fun
Jimmy
Jimmy
- danielmaximiliano
- Posts: 2612
- Joined: Fri Apr 09, 2010 4:53 pm
- Location: Argentina
- Contact:
Re: LIBhmg-64.a / LibLibPq-64.a
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO