Necesito hacer pruebas sobre funciones para el programa principal antes de compilar toda la aplicación.
Para ello intento compilar las funciones a probar aparte del programa principal y aisladas de éste.
He conseguido montar un BAT básico para BCC7 para 32 bits pero no así con gcc para 64 bits.
¿Alguien me puede decir si es posible utilizar MinGW?
También necesito un .BAT para poder compilar con gcc para 64 BITS.
Gracias de antemano.
Compilar código Harbour con gcc en 64 BITS
Re: Compilar código Harbour con gcc en 64 BITS
He instalado MinGW para 63 bits, versión: \mingw-w64\x86_64-8.1.0-posix-sjlj-rt_v6-rev0
Y utilizo para compilar el siguiente BAT:
Pero me arroja los siguientes errores que no soy capaz de resolver después de estar buscando en inet durante tres días:
Y utilizo para compilar el siguiente BAT:
Code: Select all
cls
@set HB_INSTALL=C:\harbour64
%HB_INSTALL%\bin\harbour %1.prg -n -i%HB_INSTALL%\include -iC:\MinGW-64\mingw32\i686-w64-mingw32\include
gcc -Wall -o%1.exe %1.c -I%HB_INSTALL%\include -L%HB_INSTALL%\lib -lhbvm -lhbcomio -lhbrtl -lgtwvt -lhblang -lhbrdd -lhbmacro -lhbpp -lrddntx -lrddcdx -lrddfpt -lhbsix -lhbcommon -lhbcpage -lhbct
- Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
Warning: corrupt .drectve at end of def file
...
Warning: corrupt .drectve at end of def file
C:\harbour64\lib/hbvm.lib(cmdarg.obj):(.text$mn+0x19a): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(cmdarg.obj):(.xdata[$unwind$hb_cmdargProcess]+0xc): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0x1a9): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0x18a): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0x1af): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0x261): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0x378): undefined reference to `__report_rangecheckfailure'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0x356): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0x511): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0x306): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0xcf): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0xe5): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0xec): more undefined references to `__security_check_cookie' follow
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0x74): undefined reference to `_dclass'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0x3d5): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0xe8): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0x102): undefined reference to `__report_rangecheckfailure'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0x113): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0xa7): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0xb1): undefined reference to `__report_rangecheckfailure'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0x243): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0x252): undefined reference to `__report_rangecheckfailure'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0x111): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0x151): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0x70): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0x217): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0x6c): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.text$mn+0xa0): more undefined references to `__security_check_cookie' follow
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.xdata[$unwind$hb_xquery]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.xdata[$unwind$hb_dynsymGet]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.xdata[$unwind$hb_dynsymFindName]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.xdata[$unwind$hb_stackDispCall]+0xc): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.xdata[$unwind$hb_itemString]+0x10): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbvm.lib(hvmall.obj):(.xdata[$unwind$hb_vmRequestCancel]+0x8): more undefined references to `__GSHandlerCheck' follow
C:\harbour64\lib/hbvm.lib(proc.obj):(.text$mn+0x4a): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(proc.obj):(.text$mn+0x47): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(proc.obj):(.xdata[$unwind$HB_FUN_HB_METHODNAME]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbvm.lib(proc.obj):(.xdata[$unwind$HB_FUN_PROCNAME]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbvm.lib(extrap.obj):(.text$mn+0x14): undefined reference to `__chkstk'
C:\harbour64\lib/hbvm.lib(extrap.obj):(.text$mn+0x3dc): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbvm.lib(extrap.obj):(.xdata[$unwind$hb_winExceptionHandler]+0x18): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(errsys.obj):(.data+0x2a0): undefined reference to `HB_FUN___QUIT'
C:\harbour64\lib/hbrtl.lib(transfrm.obj):(.text$mn+0x1441): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(transfrm.obj):(.text$mn+0x1467): undefined reference to `__report_rangecheckfailure'
C:\harbour64\lib/hbrtl.lib(transfrm.obj):(.text$mn+0x146d): undefined reference to `__report_rangecheckfailure'
C:\harbour64\lib/hbrtl.lib(transfrm.obj):(.xdata[$unwind$HB_FUN_TRANSFORM]+0x20): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(setcolor.obj):(.text$mn+0x5f): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(setcolor.obj):(.text$mn+0x7d): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(setcolor.obj):(.xdata[$unwind$HB_FUN_HB_NTOCOLOR]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(math.obj):(.text$mn+0x123): undefined reference to `hb_itemDo'
C:\harbour64\lib/hbrtl.lib(inkey.obj):(.text$mn+0x45): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(inkey.obj):(.text$mn+0x163): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(inkey.obj):(.xdata[$unwind$hb_inkeySetTextKeys]+0x18): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(inkey.obj):(.xdata[$unwind$HB_FUN_HB_KEYCHAR]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(hbi18n1.obj):(.text$mn+0x102): undefined reference to `hb_evalBlock1'
C:\harbour64\lib/hbrtl.lib(hbgtcore.obj):(.text$mn+0x401): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(hbgtcore.obj):(.text$mn+0x39a): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(hbgtcore.obj):(.text$mn+0x161): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(hbgtcore.obj):(.text$mn+0x42d): undefined reference to `__report_rangecheckfailure'
C:\harbour64\lib/hbrtl.lib(hbgtcore.obj):(.text$mn+0x12b): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(hbgtcore.obj):(.text$mn+0x16b): undefined reference to `__report_rangecheckfailure'
C:\harbour64\lib/hbrtl.lib(hbgtcore.obj):(.text$mn+0xcbf): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(hbgtcore.obj):(.text$mn+0xa6): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(hbgtcore.obj):(.xdata[$unwind$hb_gt_def_WriteCon]+0x1c): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(hbgtcore.obj):(.xdata[$unwind$hb_gt_def_WriteConW]+0x20): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(hbgtcore.obj):(.xdata[$unwind$hb_gt_def_BoxW]+0x18): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(hbgtcore.obj):(.xdata[$unwind$hb_gt_def_Box]+0x14): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(hbgtcore.obj):(.xdata[$unwind$hb_gt_def_Alert]+0x14): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(hbgtcore.obj):(.xdata[$unwind$hb_gt_FindDefault]+0x10): more undefined references to `__GSHandlerCheck' follow
C:\harbour64\lib/hbrtl.lib(gtsys.obj):(.text$mn+0x1): undefined reference to `HB_FUN_HB_GT_WIN'
C:\harbour64\lib/hbrtl.lib(filesys.obj):(.text$mn+0xc3): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(filesys.obj):(.text$mn+0x75): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(filesys.obj):(.text$mn+0xd4): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(filesys.obj):(.text$mn+0x1c4): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(filesys.obj):(.text$mn+0x182): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(filesys.obj):(.xdata[$unwind$hb_fsCurDrv]+0x18): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(filesys.obj):(.xdata[$unwind$hb_fsGetFileTime]+0x18): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(filesys.obj):(.xdata[$unwind$hb_fsSetFileTime]+0x10): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(filesys.obj):(.xdata[$unwind$fs_win_get_drive]+0x18): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(filesys.obj):(.xdata[$unwind$fs_win_set_drive]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(errintlo.obj):(.text$mn+0x1b): undefined reference to `__chkstk'
C:\harbour64\lib/hbrtl.lib(errintlo.obj):(.text$mn+0x320): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(errintlo.obj):(.xdata[$unwind$hb_errInternalRaw]+0x18): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(errapi.obj):(.text$mn+0xf6): undefined reference to `hb_itemDo'
C:\harbour64\lib/hbrtl.lib(errapi.obj):(.text$mn+0xe8): undefined reference to `hb_itemDo'
C:\harbour64\lib/hbrtl.lib(direct.obj):(.text$mn+0x190): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(direct.obj):(.xdata[$unwind$hb_fsDirectory]+0x14): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(dateshb.obj):(.text$mn+0x67): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(dateshb.obj):(.text$mn+0x97): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(dateshb.obj):(.text$mn+0x45): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(dateshb.obj):(.text$mn+0x75): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(dateshb.obj):(.text$mn+0x79): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(dateshb.obj):(.text$mn+0xa9): more undefined references to `__security_check_cookie' follow
C:\harbour64\lib/hbrtl.lib(dateshb.obj):(.xdata[$unwind$HB_FUN_DTOC]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(dateshb.obj):(.xdata[$unwind$HB_FUN_HB_DTOC]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(dateshb.obj):(.xdata[$unwind$HB_FUN_DTOS]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(dateshb.obj):(.xdata[$unwind$HB_FUN_TIME]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(dateshb.obj):(.xdata[$unwind$HB_FUN_HB_TTOD]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(dateshb.obj):(.xdata[$unwind$HB_FUN_HB_TTOC]+0x8): more undefined references to `__GSHandlerCheck' follow
C:\harbour64\lib/hbrtl.lib(dates.obj):(.text$mn+0x74): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(dates.obj):(.xdata[$unwind$hb_timeStampFormat]+0xc): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(console.obj):(.text$mn+0x14f): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(console.obj):(.text$mn+0x145): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(console.obj):(.text$mn+0x184): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(console.obj):(.text$mn+0x183): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(console.obj):(.text$mn+0x14e): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(console.obj):(.xdata[$unwind$HB_FUN_QOUT]+0xc): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(console.obj):(.xdata[$unwind$hb_conDevPos]+0x10): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(console.obj):(.xdata[$unwind$HB_FUN_DEVOUT]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(console.obj):(.xdata[$unwind$HB_FUN_DISPOUT]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(console.obj):(.xdata[$unwind$HB_FUN_DISPOUTAT]+0xc): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(chrasc.obj):(.text$mn+0x7c): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(chrasc.obj):(.text$mn+0xab): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(chrasc.obj):(.text$mn+0xdb): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(chrasc.obj):(.xdata[$unwind$HB_FUN_CHR]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(cdpapi.obj):(.text$mn+0xd80): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(cdpapi.obj):(.xdata[$unwind$hb_buildCodePage]+0x1c): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(spfiles.obj):(.text$mn+0x64): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(spfiles.obj):(.text$mn+0x6a): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(spfiles.obj):(.text$mn+0x4f): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(spfiles.obj):(.xdata[$unwind$hb_spOpen]+0x10): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(spfiles.obj):(.xdata[$unwind$hb_spCreate]+0x10): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(spfiles.obj):(.xdata[$unwind$hb_spCreateEx]+0x10): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(itemseri.obj):(.text$mn+0x8ce): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(itemseri.obj):(.xdata[$unwind$hb_deserializeItem]+0x10): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(idle.obj):(.text$mn+0x5c): undefined reference to `hb_itemDo'
C:\harbour64\lib/hbrtl.lib(fstemp.obj):(.text$mn+0x3e): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(fstemp.obj):(.text$mn+0x5b): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(fstemp.obj):(.text$mn+0x78): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(fstemp.obj):(.text$mn+0x8e): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(fstemp.obj):(.text$mn+0x13c): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(fstemp.obj):(.text$mn+0x9e): more undefined references to `__security_check_cookie' follow
C:\harbour64\lib/hbrtl.lib(fstemp.obj):(.xdata[$unwind$hb_fsCreateTemp]+0x18): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(fstemp.obj):(.xdata[$unwind$hb_fsTempDir]+0x10): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(fstemp.obj):(.xdata[$unwind$hb_fsTempName]+0x14): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(fstemp.obj):(.xdata[$unwind$HB_FUN_HB_FTEMPCREATE]+0x10): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(fstemp.obj):(.xdata[$unwind$HB_FUN_HB_FTEMPCREATEEX]+0x14): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrtl.lib(fstemp.obj):(.xdata[$unwind$HB_FUN_HB_DIRTEMP]+0x8): more undefined references to `__GSHandlerCheck' follow
C:\harbour64\lib/hbrtl.lib(fslink.obj):(.text$mn+0x180): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrtl.lib(fslink.obj):(.text$mn+0x196): undefined reference to `__report_rangecheckfailure'
C:\harbour64\lib/hbrtl.lib(fslink.obj):(.xdata[$unwind$hb_fsLinkRead]+0x10): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(wafunc.obj):(.text$mn+0x1bd): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(wafunc.obj):(.text$mn+0x167): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(wafunc.obj):(.text$mn+0x226): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(wafunc.obj):(.text$mn+0xfe): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(wafunc.obj):(.text$mn+0x111): undefined reference to `__report_rangecheckfailure'
C:\harbour64\lib/hbrdd.lib(wafunc.obj):(.text$mn+0x1b4): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(wafunc.obj):(.xdata[$unwind$hb_rddFieldIndex]+0xc): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(wafunc.obj):(.xdata[$unwind$hb_rddFieldExpIndex]+0x10): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(wafunc.obj):(.xdata[$unwind$hb_rddOpenTable]+0x14): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(wafunc.obj):(.xdata[$unwind$hb_rddCreateTable]+0x14): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(wafunc.obj):(.xdata[$unwind$hb_rddCreateTableTemp]+0x14): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(wacore.obj):(.text$mn+0xfc): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(wacore.obj):(.xdata[$unwind$hb_rddDefaultDrv]+0xc): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(workarea.obj):(.text$mn+0xe8): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(workarea.obj):(.text$mn+0x71): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(workarea.obj):(.text$mn+0x7b): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(workarea.obj):(.text$mn+0x2bb): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(workarea.obj):(.text$mn+0x27b): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(workarea.obj):(.xdata[$unwind$hb_rddRegister]+0x14): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(workarea.obj):(.xdata[$unwind$hb_rddInheritEx]+0x10): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(workarea.obj):(.xdata[$unwind$hb_waAddField]+0xc): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(workarea.obj):(.xdata[$unwind$hb_waInfo]+0xc): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(workarea.obj):(.xdata[$unwind$hb_waError]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(dbcmd.obj):(.text$mn+0x52): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(dbcmd.obj):(.text$mn+0x69): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(dbcmd.obj):(.text$mn+0x46): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(dbcmd.obj):(.text$mn+0x5d): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(dbcmd.obj):(.text$mn+0x34): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(dbcmd.obj):(.text$mn+0x42): more undefined references to `__security_check_cookie' follow
C:\harbour64\lib/hbrdd.lib(dbcmd.obj):(.xdata[$unwind$HB_FUN_ALIAS]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(dbcmd.obj):(.xdata[$unwind$HB_FUN_DBF]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(dbcmd.obj):(.xdata[$unwind$HB_FUN_RDDNAME]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(dbcmd.obj):(.xdata[$unwind$HB_FUN_RDDREGISTER]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(dbcmd.obj):(.xdata[$unwind$HB_FUN_HB_RDDGETTEMPALIAS]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(dbf1.obj):(.text$mn+0x981): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(dbf1.obj):(.text$mn+0x2b1): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(dbf1.obj):(.text$mn+0x26c): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(dbf1.obj):(.text$mn+0xc32): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(dbf1.obj):(.text$mn+0x1d1): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbrdd.lib(dbf1.obj):(.text$mn+0xf2): more undefined references to `__security_check_cookie' follow
C:\harbour64\lib/hbrdd.lib(dbf1.obj):(.xdata[$unwind$hb_dbfGetRowVer]+0x10): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(dbf1.obj):(.xdata[$unwind$hb_dbfSetRowVer]+0xc): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(dbf1.obj):(.xdata[$unwind$hb_dbfGetNextValue]+0xc): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(dbf1.obj):(.xdata[$unwind$hb_dbfSetNextValue]+0xc): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(dbf1.obj):(.xdata[$unwind$hb_dbfAtoincStep]+0xc): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbrdd.lib(dbf1.obj):(.xdata[$unwind$hb_dbfPasswordSet]+0x14): more undefined references to `__GSHandlerCheck' follow
C:\harbour64\lib/hbmacro.lib(macroy.obj):(.text$mn+0xcd5): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbmacro.lib(macroy.obj):(.xdata[$unwind$hb_macro_yyparse]+0x20): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.text$mn+0x208): undefined reference to `__security_check_cookie'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.text$mn+0xc91): undefined reference to `__security_check_cookie'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.text$mn+0x130f): undefined reference to `__security_check_cookie'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.text$mn+0x33a): undefined reference to `__security_check_cookie'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.text$mn+0x109): undefined reference to `__security_check_cookie'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.text$mn+0x29a): more undefined references to `__security_check_cookie' follow
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.text$mn+0x44): undefined reference to `hb_regexGet'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.text$mn+0x1b2): undefined reference to `hb_regexFree'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.text$mn+0x1c2): undefined reference to `hb_regexFree'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.text$mn+0x2b8): undefined reference to `__security_check_cookie'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.text$mn+0xbb): undefined reference to `hb_regexMatch'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.text$mn+0xcb): undefined reference to `__security_check_cookie'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.text$mn+0xdb): undefined reference to `__report_rangecheckfailure'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.text$mn+0x242): undefined reference to `__security_check_cookie'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.text$mn+0xc2): undefined reference to `__security_check_cookie'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.text$mn+0x96e): undefined reference to `__security_check_cookie'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.text$mn+0xb3): undefined reference to `__security_check_cookie'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.text$mn+0x2c4): undefined reference to `__security_check_cookie'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.xdata[$unwind$hb_ntxStrToNum]+0x10): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.xdata[$unwind$hb_ntxKeyPutItem]+0x14): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.xdata[$unwind$hb_ntxTagHeaderCheck]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.xdata[$unwind$hb_ntxTagHeaderSave]+0x18): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.xdata[$unwind$hb_ntxIndexLoad]+0xc): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/rddntx.lib(dbfntx1.obj):(.xdata[$unwind$hb_ntxCurKeyRefresh]+0x14): more undefined references to `__GSHandlerCheck' follow
C:\harbour64\lib/rddfpt.lib(dbffpt1.obj):(.text$mn+0x4dd): undefined reference to `__security_check_cookie'
C:\harbour64\lib/rddfpt.lib(dbffpt1.obj):(.text$mn+0x217): undefined reference to `__security_check_cookie'
C:\harbour64\lib/rddfpt.lib(dbffpt1.obj):(.text$mn+0x4df): undefined reference to `__security_check_cookie'
C:\harbour64\lib/rddfpt.lib(dbffpt1.obj):(.text$mn+0x3a7): undefined reference to `__security_check_cookie'
C:\harbour64\lib/rddfpt.lib(dbffpt1.obj):(.text$mn+0x3b1): undefined reference to `__security_check_cookie'
C:\harbour64\lib/rddfpt.lib(dbffpt1.obj):(.text$mn+0x231): more undefined references to `__security_check_cookie' follow
C:\harbour64\lib/rddfpt.lib(dbffpt1.obj):(.xdata[$unwind$hb_fptWriteGCitems]+0x10): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/rddfpt.lib(dbffpt1.obj):(.xdata[$unwind$hb_fptGCfreeBlock]+0x10): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/rddfpt.lib(dbffpt1.obj):(.xdata[$unwind$hb_fptReadGCdata]+0x10): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/rddfpt.lib(dbffpt1.obj):(.xdata[$unwind$hb_fptWriteGCdata]+0x10): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/rddfpt.lib(dbffpt1.obj):(.xdata[$unwind$hb_fptGetMemoLen]+0xc): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/rddfpt.lib(dbffpt1.obj):(.xdata[$unwind$hb_fptGetMemoType]+0x8): more undefined references to `__GSHandlerCheck' follow
C:\harbour64\lib/hbsix.lib(sxcrypt.obj):(.text$mn+0xb8): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbsix.lib(sxcrypt.obj):(.text$mn+0xb8): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbsix.lib(sxcrypt.obj):(.xdata[$unwind$HB_FUN_SX_ENCRYPT]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbsix.lib(sxcrypt.obj):(.xdata[$unwind$HB_FUN_SX_DECRYPT]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbcommon.lib(strwild.obj):(.text$mn+0x1e): undefined reference to `__chkstk'
C:\harbour64\lib/hbcommon.lib(strwild.obj):(.text$mn+0x430): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbcommon.lib(strwild.obj):(.text$mn+0x16): undefined reference to `__chkstk'
C:\harbour64\lib/hbcommon.lib(strwild.obj):(.text$mn+0x357): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbcommon.lib(strwild.obj):(.xdata[$unwind$hb_strMatchWildRaw]+0x1c): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbcommon.lib(strwild.obj):(.xdata[$unwind$hb_strMatchWildCDP]+0x1c): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbcommon.lib(hbver.obj):(.text$mn+0x14a): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbcommon.lib(hbver.obj):(.text$mn+0x8e): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbcommon.lib(hbver.obj):(.text$mn+0x3c1): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbcommon.lib(hbver.obj):(.text$mn+0x12c): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbcommon.lib(hbver.obj):(.xdata[$unwind$hb_verPlatform]+0xc): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbcommon.lib(hbver.obj):(.xdata[$unwind$hb_verCompiler]+0xc): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbcommon.lib(hbver.obj):(.xdata[$unwind$hb_iswinver]+0x14): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbcommon.lib(hbver.obj):(.xdata[$unwind$s_hb_winVerInit]+0xc): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbcommon.lib(hbprintf.obj):(.text$mn+0x82): undefined reference to `_vacopy'
C:\harbour64\lib/hbcommon.lib(hbprintf.obj):(.text$mn+0xf2): undefined reference to `_vacopy'
C:\harbour64\lib/hbcommon.lib(hbprintf.obj):(.text$mn+0x530): undefined reference to `_dclass'
C:\harbour64\lib/hbcommon.lib(hbprintf.obj):(.text$mn+0x544): undefined reference to `_dclass'
C:\harbour64\lib/hbcommon.lib(hbprintf.obj):(.text$mn+0x55c): undefined reference to `_dclass'
C:\harbour64\lib/hbcommon.lib(hbprintf.obj):(.text$mn+0x5ac): undefined reference to `_dclass'
C:\harbour64\lib/hbcommon.lib(hbprintf.obj):(.text$mn+0x5bd): undefined reference to `_dclass'
C:\harbour64\lib/hbcommon.lib(hbprintf.obj):(.text$mn+0x5d2): more undefined references to `_dclass' follow
C:\harbour64\lib/hbcommon.lib(hbprintf.obj):(.text$mn+0xfeb): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbcommon.lib(hbprintf.obj):(.text$mn+0x57): undefined reference to `_dsign'
C:\harbour64\lib/hbcommon.lib(hbprintf.obj):(.text$mn+0xf4): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbcommon.lib(hbprintf.obj):(.xdata[$unwind$hb_vsnprintf]+0x1c): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbcommon.lib(hbprintf.obj):(.xdata[$unwind$put_wstr]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbcommon.lib(hbffind.obj):(.text$mn+0x2e4): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbcommon.lib(hbffind.obj):(.xdata[$unwind$hb_fsFindNextLow]+0x20): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbcommon.lib(hbdate.obj):(.text$mn+0x92): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbcommon.lib(hbdate.obj):(.text$mn+0x7b): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbcommon.lib(hbdate.obj):(.text$mn+0x58): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbcommon.lib(hbdate.obj):(.text$mn+0x49): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbcommon.lib(hbdate.obj):(.text$mn+0x9d): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbcommon.lib(hbdate.obj):(.text$mn+0x8c): more undefined references to `__security_check_cookie' follow
C:\harbour64\lib/hbcommon.lib(hbdate.obj):(.xdata[$unwind$hb_dateSeconds]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbcommon.lib(hbdate.obj):(.xdata[$unwind$hb_dateMilliSeconds]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbcommon.lib(hbdate.obj):(.xdata[$unwind$hb_dateTimeStr]+0x8): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbcommon.lib(hbdate.obj):(.xdata[$unwind$hb_dateToday]+0xc): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbcommon.lib(hbdate.obj):(.xdata[$unwind$hb_timeStampGetLocal]+0x14): undefined reference to `__GSHandlerCheck'
C:\harbour64\lib/hbcommon.lib(hbdate.obj):(.xdata[$unwind$hb_timeStampGet]+0x14): more undefined references to `__GSHandlerCheck' follow
C:\harbour64\lib/hbcommon.lib(expropt2.obj):(.text$mn+0xe1): undefined reference to `__security_check_cookie'
C:\harbour64\lib/hbcommon.lib(expropt2.obj):(.xdata[$unwind$hb_compExprReduceDTOS]+0x10): undefined reference to `__GSHandlerCheck'
collect2.exe: error: ld returned 1 exit status
Re: Compilar código Harbour con gcc en 64 BITS
Hello
for 64 bit
i have to use:
harbour 64 bit
GCC 7.3 64 bit
x86_64-7.3.0-release-posix-seh-rt_v5-rev0
whe you compile a sample .prg
i have to use KBMK2
this is a sample of TEST64.HBP
# ==========================
# ==========================
-oTEST
-exitstr
-gui
-inc
### solo per GCC compiler - toglie le dipendenze dai .dll ###
-fullstatic
TEST.PRG
-lHBWIN
-lHBCT
-lXHB
-lPNG
-lPSAPI
-lHBZIPARC
-lHBMZIP
-lMINIZIP
-lHBZEBRA
-lURLMON
### librerie solo per GCC 7.3 ###
-lSTDC++
-lOLEDLG
-lGDIPLUS
-lVERSION
# ==========================
# ==========================
run the command
HBMK2 TEST64.HBP
Regards
for 64 bit
i have to use:
harbour 64 bit
GCC 7.3 64 bit
x86_64-7.3.0-release-posix-seh-rt_v5-rev0
whe you compile a sample .prg
i have to use KBMK2
this is a sample of TEST64.HBP
# ==========================
# ==========================
-oTEST
-exitstr
-gui
-inc
### solo per GCC compiler - toglie le dipendenze dai .dll ###
-fullstatic
TEST.PRG
-lHBWIN
-lHBCT
-lXHB
-lPNG
-lPSAPI
-lHBZIPARC
-lHBMZIP
-lMINIZIP
-lHBZEBRA
-lURLMON
### librerie solo per GCC 7.3 ###
-lSTDC++
-lOLEDLG
-lGDIPLUS
-lVERSION
# ==========================
# ==========================
run the command
HBMK2 TEST64.HBP
Regards
Re: Compilar código Harbour con gcc en 64 BITS
Obtengo los siguientes dos errores / I get two errors:
- C:\CLIWIN\FW>hbmk2 prueba2
Harbour 3.2.0dev (r1802131223)
Copyright (c) 1999-2018, https://harbour.github.io/
Compiling 'prueba2.prg'...
Lines 59, Functions/Procedures 1
Generating C source output to 'C:\Users\santi\AppData\Local\Temp\hbmk_tkpklk.dir\prueba2.c'... Done.
cc1.exe: error: CPU you selected does not support x86-64 instruction set
cc1.exe: error: CPU you selected does not support x86-64 instruction set
hbmk2: Error: Ejecutando compilador C/C++. 1
gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer -W -Wall -pipe -Ig:/hb32/include C:/Users/santi/AppData/Local/Temp/hbmk_tkpklk.dir/prueba2.c C:/Users/santi/AppData/Local/Temp/hbmk_corp9t.c
Re: Compilar código Harbour con gcc en 64 BITS
you have to check this:
1) your windows system is 64 bit ?
2) your harbour release is 64 bit and is compiled with gcc 7.3 64 bit ?
regards
1) your windows system is 64 bit ?
2) your harbour release is 64 bit and is compiled with gcc 7.3 64 bit ?
regards
Re: Compilar código Harbour con gcc en 64 BITS
El sistema es 64 bits.
El sistema operativo es 64 bits.
He instalado la última versión de harbour descargada de https://sourceforge.net/projects/harbou ... s/nightly/
harbour-nightly-win.7z
Eso deja instalado harbour versión 3.2 en G:\hb32.
Después como la carpeta G:\hb32\comp\mingw64 está vacía, sigo las instrucciones que constan en el fichero "HARBOUR_README_MINGW64.txt", que dicen:
If this directory is empty, download package from link below and unpack into this directory.
http://sourceforge.net/projects/mingw-w64/files/
En esa página me he ido a la sección correspondiente a la versión gcc que me indicas:
MinGW-W64 GCC-7.3.0
x86_64-posix-seh
Y lo he descomprimido en la carpeta: G:\hb32\comp\mingw64
He descargado el fichero: x86_64-7.3.0-release-posix-seh-rt_v5-rev0.7z
Después he probado a generar un exe con las siguientes instrucciones en una consola del sistema:
path=G:\hb32\bin
hbmk2 G:\hb32\tests\hello.prg
Y funciona bien.
Pero al probar a generar el exe para 64 bits con la instrucción
hbmk2 G:\hb32\tests\hello.prg -compiler=mingw64
Me arroja el error siguiente:
El sistema operativo es 64 bits.
He instalado la última versión de harbour descargada de https://sourceforge.net/projects/harbou ... s/nightly/
harbour-nightly-win.7z
Eso deja instalado harbour versión 3.2 en G:\hb32.
Después como la carpeta G:\hb32\comp\mingw64 está vacía, sigo las instrucciones que constan en el fichero "HARBOUR_README_MINGW64.txt", que dicen:
If this directory is empty, download package from link below and unpack into this directory.
http://sourceforge.net/projects/mingw-w64/files/
En esa página me he ido a la sección correspondiente a la versión gcc que me indicas:
MinGW-W64 GCC-7.3.0
x86_64-posix-seh
Y lo he descomprimido en la carpeta: G:\hb32\comp\mingw64
He descargado el fichero: x86_64-7.3.0-release-posix-seh-rt_v5-rev0.7z
Después he probado a generar un exe con las siguientes instrucciones en una consola del sistema:
path=G:\hb32\bin
hbmk2 G:\hb32\tests\hello.prg
Y funciona bien.
Pero al probar a generar el exe para 64 bits con la instrucción
hbmk2 G:\hb32\tests\hello.prg -compiler=mingw64
Me arroja el error siguiente:
- G:\hb32>hbmk2 g:\hb32\tests\hello.prg -compiler=mingw64
Error BASE/1068 Error de argumento: acceso al array (Quit)
Error BASE/1068 Error de argumento: acceso al array
Called from PARAMTOSTRING(0)
Called from LEGACYWARNING(0)
Called from __HBMK(0)
Called from HBMK_LOCAL_ENTRY(0)
Called from _APPMAIN(0)
Re: Compilar código Harbour con gcc en 64 BITS
do not use the option
-compiler=mingw64
hbmk2 auto recognize the compiler
compile this test code with harbour 64 ad gcc 7.3 64 bit
and show the result
=====================
Function MAIN()
SET COLOR TO
CLEAR
? HB_VERSION()
? HB_BuildDate()
? HB_PCodeVer()
?
? HB_COMPILER()
?
? OS()
?
? Version()
? "Database Engine: "+RDDSetDefault()+" "+DBTableEXT()+"/"+ORDBagEXT()
? "Nome Computer: "+NETNAME()
?
WAIT
Return .T.
=====================
Regards
-compiler=mingw64
hbmk2 auto recognize the compiler
compile this test code with harbour 64 ad gcc 7.3 64 bit
and show the result
=====================
Function MAIN()
SET COLOR TO
CLEAR
? HB_VERSION()
? HB_BuildDate()
? HB_PCodeVer()
?
? HB_COMPILER()
?
? OS()
?
? Version()
? "Database Engine: "+RDDSetDefault()+" "+DBTableEXT()+"/"+ORDBagEXT()
? "Nome Computer: "+NETNAME()
?
WAIT
Return .T.
=====================
Regards
Re: Compilar código Harbour con gcc en 64 BITS
Con el siguiente path / Whit this path:
G:\hb32>path
PATH=G:\hb32\bin;G:\hb32\comp\mingw64;G:\hb32\comp\mingw64\x86_64-w64-mingw32\lib
Compilo con / I compile with:
hbmk2 pruebahb
Y este es el resultado / And I get this result:
G:\hb32>path
PATH=G:\hb32\bin;G:\hb32\comp\mingw64;G:\hb32\comp\mingw64\x86_64-w64-mingw32\lib
Compilo con / I compile with:
hbmk2 pruebahb
Y este es el resultado / And I get this result:
- Harbour 3.2.0dev (r1802131223)
Feb 22 2018 04:47:00
PCode version: 0.3
MinGW GNU C 5.3 (32-bit)
Windows 8 6.2
Harbour 3.2.0dev (r1802131223)
Database Engine: DBFNTX .dbf/.ntx
Nome Computer: LENOVO
Press any key to continue...
G:\hb32>
Re: Compilar código Harbour con gcc en 64 BITS
SOLUCIONADO / SOLVED.
MUCHAS GRACIAS POR SU AYUDA.
Dejo un resumen por si le puede servir a alguien más:
He tenido que construir harbour para 64 bits desde los fuentes.
De la siguiente manera:
1.- Se descarga de gitHub el core-master.zip
2.- Se descomprime en la carpeta donde se vaya a querer tener instalada la versión de harbour, p.ejem en: G:\core-master32
3.- Se instala mingw64 y se instala en una carpeta que puede ser por ejemplo: G:\mingw64
4.- Se construye harbour con:
SET PATH=G:\mingw64\bin;%PATH%
win-make.exe
5.- Probamos que ha quedado bien construido para lo cual compilamos un programa básico (que he llamado pruebahb.prg) como el que nos pone más arriba nuestro compañero en un post de este hilo:
G:\core-master32\bin\win\mingw64\hbmk2 pruebahb.prg
6.- Ejecutamos el programa y ya sale que ha compilado en 64 bits:
MUCHAS GRACIAS POR SU AYUDA.
Dejo un resumen por si le puede servir a alguien más:
He tenido que construir harbour para 64 bits desde los fuentes.
De la siguiente manera:
1.- Se descarga de gitHub el core-master.zip
2.- Se descomprime en la carpeta donde se vaya a querer tener instalada la versión de harbour, p.ejem en: G:\core-master32
3.- Se instala mingw64 y se instala en una carpeta que puede ser por ejemplo: G:\mingw64
4.- Se construye harbour con:
SET PATH=G:\mingw64\bin;%PATH%
win-make.exe
5.- Probamos que ha quedado bien construido para lo cual compilamos un programa básico (que he llamado pruebahb.prg) como el que nos pone más arriba nuestro compañero en un post de este hilo:
G:\core-master32\bin\win\mingw64\hbmk2 pruebahb.prg
6.- Ejecutamos el programa y ya sale que ha compilado en 64 bits:
- Harbour 3.2.0dev (r1805312125)
Jun 4 2018 22:28:31
PCode version: 0.3
MinGW GNU C 7.3 (64-bit)
Windows 8 6.2
Harbour 3.2.0dev (r1805312125)
Database Engine: DBFNTX .dbf/.ntx
Nome Computer: LENOVO
Press any key to continue...