• i need a makefile for 64 bit

    From =?UTF-8?B?7ZaJ67O17ZWc7ZWY66Oo?=@21:1/5 to All on Thu Jan 19 18:46:58 2023
    xHarbour Binaries Rev. 10269 for BCC 7.30 64bit
    Embarcadero 64-bit BCC 7.30 Compiler (Evaluation Only!)

    I downloaded both of the above.

    Can I get a makefile to compile a test prg and make an executable?

    I need a makefile for 64 bit.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Fri Jan 20 10:19:27 2023
    Il 20/01/2023 03:46, 행복한하루 ha scritto:

    xHarbour Binaries Rev. 10269 for BCC 7.30 64bit
    Embarcadero 64-bit BCC 7.30 Compiler (Evaluation Only!)

    I downloaded both of the above.

    Can I get a makefile to compile a test prg and make an executable?

    I need a makefile for 64 bit.

    Here is a batch file (check the paths):

    @ ECHO OFF

    SET BCC=e:\fw\bcc64\bcc
    SET XHB=e:\fw\bcc64\xharbour

    SET HARBOURCMD=-a -es2 -gc0 -n -q -w3 -u+%EFW%\include\harbour.ch

    SET CLIB=-L%BCC%\lib;%BCC%\lib\psdk @%BCC%\bcc64.rsp

    IF EXIST %1.prg %XHB%\harbour %1 -i%XHB%\include
    IF EXIST %1.c %BCC%\bin\bcc64 -I%XHB%\include %1.c
    IF EXIST %1.o %BCC%\bin\ilink64 -j%XHB%\lib -ap c0x64 %1, %1.EXE, , @%XHB%\hrb64%SSL%.rsp %CLIB%
    IF EXIST %1.c DEL %1.c
    IF EXIST %1.o DEL %1.o
    IF ERRORLEVEL 1 GOTO Pausa
    IF NOT EXIST %1.exe GOTO Pausa
    %1

    GOTO Fine


    :Pausa

    PAUSE


    :Fine

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?B?7J2A66mN7J20?=@21:1/5 to All on Tue Jan 24 17:10:43 2023
    2023년 1월 20일 금요일 오후 6시 19분 28초 UTC+9에 Enrico Maria Giordano님이 작성한 내용:
    Il 20/01/2023 03:46, 행복한하루 ha scritto:

    xHarbour Binaries Rev. 10269 for BCC 7.30 64bit
    Embarcadero 64-bit BCC 7.30 Compiler (Evaluation Only!)

    I downloaded both of the above.

    Can I get a makefile to compile a test prg and make an executable?

    I need a makefile for 64 bit.
    Here is a batch file (check the paths):

    @ ECHO OFF

    SET BCC=e:\fw\bcc64\bcc
    SET XHB=e:\fw\bcc64\xharbour

    SET HARBOURCMD=-a -es2 -gc0 -n -q -w3 -u+%EFW%\include\harbour.ch

    SET CLIB=-L%BCC%\lib;%BCC%\lib\psdk @%BCC%\bcc64.rsp

    IF EXIST %1.prg %XHB%\harbour %1 -i%XHB%\include
    IF EXIST %1.c %BCC%\bin\bcc64 -I%XHB%\include %1.c
    IF EXIST %1.o %BCC%\bin\ilink64 -j%XHB%\lib -ap c0x64 %1, %1.EXE, , @%XHB%\hrb64%SSL%.rsp %CLIB%
    IF EXIST %1.c DEL %1.c
    IF EXIST %1.o DEL %1.o
    IF ERRORLEVEL 1 GOTO Pausa
    IF NOT EXIST %1.exe GOTO Pausa
    %1

    GOTO Fine


    :Pausa

    PAUSE


    :Fine

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg


    xhb10269_bcc73064.zip
    bcc73064.zip

    batch file you sent I tried compiling but in the compressed file I received

    The files harbour.ch and bcc64.rsp cannot be found.

    C:\xharbour\tests>build while
    xHarbour 1.2.3 Intl. (SimpLex) (Build 20221118)
    Copyright 1999-2022, http://www.xharbour.org http://www.harbour-project.org/ Error F0033 Can't open standard rule file: '\include\harbour.ch'

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Wed Jan 25 09:42:16 2023
    Il 25/01/2023 02:10, 은멍이 ha scritto:

    The files harbour.ch and bcc64.rsp cannot be found.

    Sorry, this is the correct one:

    @ ECHO OFF

    SET BCC=e:\fw\bcc64\bcc
    SET XHB=e:\fw\bcc64\xharbour

    SET HARBOURCMD=-a -es2 -gc0 -n -q -w3

    SET CLIB=-L%BCC%\lib;%BCC%\lib\psdk @%BCC%\bcc64.rsp

    IF EXIST %1.prg %XHB%\harbour %1 -i%XHB%\include
    IF EXIST %1.c %BCC%\bin\bcc64 -I%XHB%\include %1.c
    IF EXIST %1.o %BCC%\bin\ilink64 -j%XHB%\lib -ap c0x64 %1, %1.EXE, , @%XHB%\hrb64%SSL%.rsp %CLIB%
    IF EXIST %1.c DEL %1.c
    IF EXIST %1.o DEL %1.o
    IF ERRORLEVEL 1 GOTO Pausa
    IF NOT EXIST %1.exe GOTO Pausa
    %1

    GOTO Fine


    :Pausa

    PAUSE


    :Fine

    And this is the content of BCC64.RSP:

    cw64 +
    import64 +
    shell32 +
    iphlpapi +
    wininet

    Try and let me know.

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Davide Lodi@21:1/5 to All on Mon Feb 27 02:38:01 2023
    Hi, I'm new on xharbour, I'm an old Clipper programmer. I actually use harbour, and I'm trying to step on.
    I can't start my first xharbour application, test.prg:

    function MAIN
    private GETLIST && added to avoid warnings..
    clear
    ? "Hello, world!"
    return .t.

    Your batch file compiles the prg in the .c file, but C compiling fails with these errors:
    Error: Unresolved external 'main' referenced from C:\BCC7364\LIB\C0X64.O
    Error: Unresolved external 'HB_FUN___MVPRIVATE' referenced from C:\USERS\DAVIDE.000\APPDATA\LOCAL\TEMP\TEST-298661.O
    Error: Unresolved external 'HB_FUN_SCROLL' referenced from C:\USERS\DAVIDE.000\APPDATA\LOCAL\TEMP\TEST-298661.O
    Error: Unresolved external 'HB_FUN_SETPOS' referenced from C:\USERS\DAVIDE.000\APPDATA\LOCAL\TEMP\TEST-298661.O
    Error: Unresolved external 'HB_FUN_READKILL' referenced from C:\USERS\DAVIDE.000\APPDATA\LOCAL\TEMP\TEST-298661.O
    Error: Unresolved external 'HB_FUN_QOUT' referenced from C:\USERS\DAVIDE.000\APPDATA\LOCAL\TEMP\TEST-298661.O
    Error: Unresolved external 'hb_vmProcessSymbols' referenced from C:\USERS\DAVIDE.000\APPDATA\LOCAL\TEMP\TEST-298661.O
    Error: Unresolved external 'hb_vmExecute' referenced from C:\USERS\DAVIDE.000\APPDATA\LOCAL\TEMP\TEST-298661.O
    Warning: Unable to load DLL LNKDFM240
    bcc64.exe: error: linker command failed with exit code 2 (use -v to see invocation)

    I tried also to compile C file with VC++, with same luck..from command line: "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\bin\Hostx64\x64\cl" /I c:\xharbour\include\ test.c

    I get
    c:\xharbour\include\hbvmpub.h(65): fatal error C1083: Non è possibile aprire il file inclusione: 'assert.h': No such file or directory

    In the folder include I have only assert.CH, not .h.. I tried also to include the file I have, than the error became on hbvmpub.h. I have it, but compilation doesn't go on, reporting 'No such file or directory'

    Can anybody help me ? Thank you in advance

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Mon Feb 27 14:48:29 2023
    Il 27/02/2023 11:38, Davide Lodi ha scritto:

    Hi, I'm new on xharbour, I'm an old Clipper programmer. I actually use harbour, and I'm trying to step on.
    I can't start my first xharbour application, test.prg:

    function MAIN
    private GETLIST && added to avoid warnings..
    clear
    ? "Hello, world!"
    return .t.

    Your batch file compiles the prg in the .c file, but C compiling fails with these errors:
    Error: Unresolved external 'main' referenced from C:\BCC7364\LIB\C0X64.O

    Please, send me (to my private email) the batch you are using (and the
    related config files) and a test PRG that you can't compile so I can
    check it here.

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)