Page 1 of 1

neuer User

PostPosted: Thu Sep 05, 2019 5:06 pm
by Jimmy
hi,

mein Name ist Jimmy, Baujahr 1956 in Shanghai / China.

mit xBase hab ich angefangen auf einem Apple ][ und dBase ][ unter CP/M
über dBase III, Cl*pper, VO bis ich bei Xbase++ gelandet https://www.xbaseforum.de

in der letzten Zeit hab ich mich mit dem Thema 64 Bit beschäftigt und da speziell mit PostgreSQL.

---

ich habe liblibpq.a und Libhbpgsql.a die 32 Bit sind.
ich benötige die 64 Bit Versionen liblibpq-64.a / Libhbpgsql-64.a

wenn ich das richtig verstehe besteht hbpgsql aus
Code: Select all  Expand view
postgres.c
rddcopy.c
tpostgre.prg
das File postgres.c ist das
PostgreSQL RDBMS low level (client api) interface code.


nun habe ich ein MakeLib.bat was aber mit BCC arbeitet also 32 Bit.
wie mache ich das mit MING64 für 64 Bit :?:

---

hm ... kein Attachment möglich :?:

Code: Select all  Expand view
@echo off

rem Builds Harbour library hbpgsql.lib and converts original POstgreSQL libpq.lib (COFF) to OMF format (for Borland)
set PQ_VER=9.5

:OPT
  call ..\..\batch\makelibopt.bat hbpgsql h %1 %2 %3 %4 %5 %6 %7 %8 %9
  if %MV_EXIT%==Y    goto END
  if %MV_DODONLY%==Y goto CLEANUP
  if %MV_USEXHRB%==N goto BUILD
  echo hbpgsql.lib is not compatible with xHarbour.
  goto END


:BUILD
  if exist %MV_BUILD%\hbpgsql.lib del %MV_BUILD%\hbpgsql.lib
  %MV_HRB%\bin\harbour.exe tpostgre.prg -n -w3 -es2 -gc0 -i%MV_HRB%\include
  %MG_BCC%\bin\bcc32 -c -O2 -I%MG_HRB%\include -I.\%PQ_VER% postgres.c rddcopy.c tpostgre.c
  %MG_BCC%\bin\tlib %MV_BUILD%\hbpgsql.lib +postgres.obj +rddcopy.obj +tpostgre.obj
  if exist %MV_BUILD%\hbpgsql.bak del %MV_BUILD%\hbpgsql.bak

  if exist .\%PQ_VER%\libpq.lib coffimplib .\%PQ_VER%\libpq.lib %MV_BUILD%\libpq.lib
  if not exist .\%PQ_VER%\libpq.lib echo original libpq.lib (COFF) is MISSING: %MV_BUILD%\libpq.lib (OMF) is not created!


:CLEANUP
  if exist postgres.obj del postgres.obj
  if exist rddcopy.obj  del rddcopy.obj
  if exist tpostgre.obj del tpostgre.obj
  if exist tpostgre.c   del tpostgre.c

:END
  call ..\..\batch\makelibend.bat

Re: neuer User

PostPosted: Fri Sep 06, 2019 8:32 am
by Antonio Linares
Jimmy,

cd c:\harbour\contrib\hbpgsql\
c:\gcc81w64\bin\gcc -c postgres.c -Ic:\harbour\include -I"c:\Program Files"\PostgreSQL\11\include\
c:\gcc81w64\bin\gcc -c rddcopy.c -Ic:\harbour\include -I"c:\Program Files"\PostgreSQL\11\include\

https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/gcc81w64.zip
https://github.com/FiveTechSoft/harbour_and_xharbour_builds/blob/master/harbour3.2_gcc81_64bits.zip

Re: neuer User

PostPosted: Sat Sep 07, 2019 10:00 am
by Jimmy
hi Antonio,

thx for you Answer
Antonio Linares wrote:
Code: Select all  Expand view
cd c:\harbour\contrib\hbpgsql\
c:\gcc81w64\bin\gcc -c postgres.c -Ic:\harbour\include -I"c:\Program Files"\PostgreSQL\11\include\
c:\gcc81w64\bin\gcc -c rddcopy.c -Ic:\harbour\include -I"c:\Program Files"\PostgreSQL\11\include\

YES ... that what i'm searching for 64 Bit :!:

thx for Link

now i got
Code: Select all  Expand view
postgres.o
rddcopy.o

em, äh ... how to make LibLibPQ-64.a from Object :?:
what about CLASS TPQServer in tpostgre.prg

sorry about those Question but i'm a Newbie outside Xbase++

Re: neuer User

PostPosted: Sun Sep 08, 2019 6:06 am
by Antonio Linares