Unsupported 16-bit segment

Unsupported 16-bit segment

Postby Luis Jonas » Mon Jun 23, 2008 4:19 pm

Al pasar de FW16 a FW32 con harbour:

rmake:
*=====================================
#Borland make sample, (c) FiveTech Software 2005

HBDIR=c:\harbour
BCDIR=c:\bcc55
FWDIR=c:\fwh

#change these paths as needed
.path.OBJ = .\obj
.path.PRG = .\
.path.CH = $(FWDIR)\include;$(HBDIR)\include
.path.C = .\
.path.rc = .\

#important: Use Uppercase for filenames extensions, in the next two rules!

PRG = \
Winqvol.PRG \
Vol_Men1.PRG \
Vol_Men2.PRG \
Vol_Men3.PRG \
Vol_Men4.PRG \
Vol_Prn1.PRG \
Vol_Prn2.PRG \
Vol_Prn3.PRG \
Vol_Prn4.PRG \
Vol_Prn5.PRG \
Vol_Prn6.PRG \
Vol_Gral.PRG

C = \


PROJECT : WinQVol.exe

WinQVol.exe : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ) WinQVol.res
echo off
echo $(BCDIR)\lib\c0w32.obj + > b32.bc
echo obj\WinQVol.obj obj\Vol_Men1.obj obj\Vol_Men2.obj obj\Vol_Men3.obj obj\Vol_Men4.obj obj\Vol_Prn1.obj obj\Vol_Prn2.obj obj\Vol_Prn3.obj obj\Vol_Prn4.obj obj\Vol_Prn5.obj obj\Vol_Prn6.obj obj\Vol_Gral.obj, + >> b32.bc
echo winqvol.exe, + >> b32.bc
echo winqvol.map, + >> b32.bc
echo $(FWDIR)\lib\FiveH.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc
echo $(HBDIR)\lib\b32\rtl.lib + >> b32.bc
echo $(HBDIR)\lib\b32\vm.lib + >> b32.bc
echo $(HBDIR)\lib\b32\gtgui.lib + >> b32.bc
echo $(HBDIR)\lib\b32\lang.lib + >> b32.bc
echo $(HBDIR)\lib\b32\macro.lib + >> b32.bc
echo $(HBDIR)\lib\b32\rdd.lib + >> b32.bc
echo $(HBDIR)\lib\b32\dbfntx.lib + >> b32.bc
echo $(HBDIR)\lib\b32\dbfcdx.lib + >> b32.bc
echo $(HBDIR)\lib\b32\dbffpt.lib + >> b32.bc
echo $(HBDIR)\lib\b32\hbsix.lib + >> b32.bc
echo $(HBDIR)\lib\b32\debug.lib + >> b32.bc
echo $(HBDIR)\lib\b32\common.lib + >> b32.bc
echo $(HBDIR)\lib\b32\pp.lib + >> b32.bc
echo $(HBDIR)\lib\b32\codepage.lib + >> b32.bc

rem Uncomment these two lines to use Advantage RDD
rem echo $(HBDIR)\lib\b32\rddads.lib + >> b32.bc
rem echo $(HBDIR)\lib\b32\Ace32.lib + >> b32.bc

echo $(BCDIR)\lib\cw32.lib + >> b32.bc
echo $(BCDIR)\lib\import32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\odbc32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\nddeapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\iphlpapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\rasapi32.lib, >> b32.bc

IF EXIST winqvol.res echo WinQvol.res >> b32.bc
$(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
del b32.bc

.PRG.OBJ:
$(HBDIR)\bin\b32\harbour $< /L /N /W /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include
$(BCDIR)\bin\bcc32 -c -tWM -I$(HBDIR)\include -oobj\$& obj\$&.c

.C.OBJ:
echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp
echo -I$(HBDIR)\include;$(FWDIR)\include >> tmp
$(BCDIR)\bin\bcc32 -oobj\$& @tmp $&.c
del tmp

WinQvol.res : WinQVol.rc
$(BCDIR)\bin\brc32.exe -r WinQVol.rc

*==========================================

Respuesta obtenida:

C:\FWH\WinQVol>if not exist obj md obj

C:\FWH\WinQVol>c:\bcc55\bin\make -fwinqvol.rmk
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
echo off
echo c:\bcc55\lib\c0w32.obj + > b32.bc
echo obj\WinQVol.obj obj\Vol_Men1.obj obj\Vol_Men2.obj obj\Vol_Men3.obj
obj\Vol_Men4.obj obj\Vol_Prn1.obj obj\Vol_Prn2.obj obj\Vol_Prn3.obj obj\Vol_Prn4
.obj obj\Vol_Prn5.obj obj\Vol_Prn6.obj obj\Vol_Gral.obj, + >> b32.bc
echo winqvol.exe, + >> b32.bc
echo winqvol.map, + >> b32.bc
echo c:\fwh\lib\FiveH.lib c:\fwh\lib\FiveHC.lib + >> b32.bc
echo c:\harbour\lib\b32\rtl.lib + >> b32.bc
echo c:\harbour\lib\b32\vm.lib + >> b32.bc
echo c:\harbour\lib\b32\gtgui.lib + >> b32.bc
echo c:\harbour\lib\b32\lang.lib + >> b32.bc
echo c:\harbour\lib\b32\macro.lib + >> b32.bc
echo c:\harbour\lib\b32\rdd.lib + >> b32.bc
echo c:\harbour\lib\b32\dbfntx.lib + >> b32.bc
echo c:\harbour\lib\b32\dbfcdx.lib + >> b32.bc
echo c:\harbour\lib\b32\dbffpt.lib + >> b32.bc
echo c:\harbour\lib\b32\hbsix.lib + >> b32.bc
echo c:\harbour\lib\b32\debug.lib + >> b32.bc
echo c:\harbour\lib\b32\common.lib + >> b32.bc
echo c:\harbour\lib\b32\pp.lib + >> b32.bc
echo c:\harbour\lib\b32\codepage.lib + >> b32.bc
rem Uncomment these two lines to use Advantage RDD
rem echo c:\harbour\lib\b32\rddads.lib + >> b32.bc
rem echo c:\harbour\lib\b32\Ace32.lib + >> b32.bc
echo c:\bcc55\lib\cw32.lib + >> b32.bc
echo c:\bcc55\lib\import32.lib + >> b32.bc
echo c:\bcc55\lib\psdk\odbc32.lib + >> b32.bc
echo c:\bcc55\lib\psdk\nddeapi.lib + >> b32.bc
echo c:\bcc55\lib\psdk\iphlpapi.lib + >> b32.bc
echo c:\bcc55\lib\psdk\rasapi32.lib, >> b32.bc
IF EXIST winqvol.res echo WinQvol.res >> b32.bc
c:\bcc55\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Unsupported 16-bit segment(s) in module WINQVOL

** error 2 ** deleting WinQVol.exe

C:\FWH\WinQVol>pause

*=========================================

Es mi primer intento de pasar del antiguo FW al FWH recien adquirido, por tanto debeis de ser comprensiv@s y darme alguna pista.

Thanks in advance:

Luis Jonas
Idoslab SL
Luis Jonas
 
Posts: 4
Joined: Sun Jun 22, 2008 9:37 am

Postby horacio » Mon Jun 23, 2008 4:51 pm

Luis,
Debés tener alguna librería de 16 bits y en 32 no te va a funcionar. Fijate si usas algún control de terceros. Si es así tendrás que compilarlo en 32. Saludos
horacio
 
Posts: 1363
Joined: Wed Jun 21, 2006 12:39 am
Location: Capital Federal Argentina

Postby Antonio Linares » Mon Jun 23, 2008 5:01 pm

Luis,

Este parece ser el módulo que no has recompilado en 32 bits:

Fatal: Unsupported 16-bit segment(s) in module WINQVOL
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42160
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Luis Jonas » Mon Jun 23, 2008 6:51 pm

horacio wrote:Luis,
Debés tener alguna librería de 16 bits y en 32 no te va a funcionar. Fijate si usas algún control de terceros. Si es así tendrás que compilarlo en 32. Saludos


EFECTIVAMENTE:

C:\FWH\WinQVol>REM if not exist obj md obj

C:\FWH\WinQVol>c:\bcc55\bin\make -f winqvol.rmk
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
echo off
echo c:\bcc55\lib\c0w32.obj + > b32.bc
echo obj\WinQVol.obj obj\Vol_Men1.obj obj\Vol_Men2.obj obj\Vol_Men3.obj
obj\Vol_Men4.obj obj\Vol_Prn1.obj obj\Vol_Prn2.obj obj\Vol_Prn3.obj obj\Vol_Prn4
.obj obj\Vol_Prn5.obj obj\Vol_Prn6.obj obj\Vol_Gral.obj, + >> b32.bc
echo winqvol.exe, + >> b32.bc
echo winqvol.map, + >> b32.bc
echo c:\fwh\lib\FiveH.lib c:\fwh\lib\FiveHC.lib + >> b32.bc
echo c:\harbour\lib\b32\rtl.lib + >> b32.bc
echo c:\harbour\lib\b32\vm.lib + >> b32.bc
echo c:\harbour\lib\b32\gtgui.lib + >> b32.bc
echo c:\harbour\lib\b32\lang.lib + >> b32.bc
echo c:\harbour\lib\b32\macro.lib + >> b32.bc
echo c:\harbour\lib\b32\rdd.lib + >> b32.bc
echo c:\harbour\lib\b32\dbfntx.lib + >> b32.bc
echo c:\harbour\lib\b32\dbfcdx.lib + >> b32.bc
echo c:\harbour\lib\b32\dbffpt.lib + >> b32.bc
echo c:\harbour\lib\b32\hbsix.lib + >> b32.bc
echo c:\harbour\lib\b32\debug.lib + >> b32.bc
echo c:\harbour\lib\b32\common.lib + >> b32.bc
echo c:\harbour\lib\b32\pp.lib + >> b32.bc
echo c:\harbour\lib\b32\codepage.lib + >> b32.bc
rem Uncomment these two lines to use Advantage RDD
rem echo c:\harbour\lib\b32\rddads.lib + >> b32.bc
rem echo c:\harbour\lib\b32\Ace32.lib + >> b32.bc
echo c:\bcc55\lib\cw32.lib + >> b32.bc
echo c:\bcc55\lib\import32.lib + >> b32.bc
echo c:\bcc55\lib\psdk\odbc32.lib + >> b32.bc
echo c:\bcc55\lib\psdk\nddeapi.lib + >> b32.bc
echo c:\bcc55\lib\psdk\iphlpapi.lib + >> b32.bc
echo c:\bcc55\lib\psdk\rasapi32.lib, >> b32.bc
IF EXIST winqvol.res echo WinQvol.res >> b32.bc
c:\bcc55\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_HB_FUN_GET_PASS' referenced from C:\FWH\WINQVOL\OBJ
\WINQVOL.OBJ
Error: Unresolved external '_HB_FUN_IS_DEMO' referenced from C:\FWH\WINQVOL\OBJ\
WINQVOL.OBJ
Error: Unresolved external '_HB_FUN_LIBERAR' referenced from C:\FWH\WINQVOL\OBJ\
WINQVOL.OBJ
Error: Unresolved external '_HB_FUN_NTXBUILD' referenced from C:\FWH\WINQVOL\OBJ
\VOL_GRAL.OBJ
Error: Unresolved external '_HB_FUN_ENCRYPTA' referenced from C:\FWH\WINQVOL\OBJ
\VOL_GRAL.OBJ
Error: Unresolved external '_HB_FUN_INDEXAR' referenced from C:\FWH\WINQVOL\OBJ\
VOL_GRAL.OBJ
Error: Unresolved external '_HB_FUN_SENDMAIL' referenced from C:\FWH\WINQVOL\OBJ
\WINQVOL.OBJ
Error: Unresolved external '_HB_FUN_DIRPRG' referenced from C:\FWH\WINQVOL\OBJ\W
INQVOL.OBJ
Error: Unresolved external '_HB_FUN_FILE_INFO' referenced from C:\FWH\WINQVOL\OB
J\VOL_MEN1.OBJ
Error: Unresolved external '_HB_FUN_INDEXAR_1' referenced from C:\FWH\WINQVOL\OB
J\VOL_MEN1.OBJ
Error: Unresolved external '_HB_FUN_CALENDARIO' referenced from C:\FWH\WINQVOL\O
BJ\VOL_MEN1.OBJ
Error: Unresolved external '_HB_FUN_AMED' referenced from C:\FWH\WINQVOL\OBJ\VOL
_MEN3.OBJ
Error: Unresolved external '_HB_FUN_ATIP' referenced from C:\FWH\WINQVOL\OBJ\VOL
_MEN3.OBJ
Error: Unresolved external '_HB_FUN_AMAX' referenced from C:\FWH\WINQVOL\OBJ\VOL
_PRN2.OBJ
Error: Unresolved external '_HB_FUN_AMIN' referenced from C:\FWH\WINQVOL\OBJ\VOL
_PRN2.OBJ
Error: Unresolved external '_HB_FUN_FECHA_TEXTO' referenced from C:\FWH\WINQVOL\
OBJ\VOL_PRN6.OBJ
Error: Unresolved external '_HB_FUN_CAJA' referenced from C:\FWH\WINQVOL\OBJ\VOL
_PRN6.OBJ
Error: Unresolved external '_HB_FUN_LTOC' referenced from C:\FWH\WINQVOL\OBJ\VOL
_PRN4.OBJ
Error: Unresolved external '_HB_FUN_AMINZ' referenced from C:\FWH\WINQVOL\OBJ\VO
L_PRN4.OBJ
Error: Unresolved external '_HB_FUN_RESPALDO' referenced from C:\FWH\WINQVOL\OBJ
\WINQVOL.OBJ
Error: Unresolved external '_HB_FUN_RESTAURAR' referenced from C:\FWH\WINQVOL\OB
J\WINQVOL.OBJ

** error 2 ** deleting WinQVol.exe

C:\FWH\WinQVol>pause
Presione una tecla para continuar . . .

TODOS LOS Unresolved external son funciones de una librería propia del FW16 maravilloso, que no veas como funciona....

¿Y como demonios paso esa librería con esas funciones para ser utilizadas ahora con FWH?

Cada día sé que sé menos... y encima más mayor
Luis Jonas
 
Posts: 4
Joined: Sun Jun 22, 2008 9:37 am

Postby Luis Jonas » Mon Jun 23, 2008 6:58 pm

Antonio Linares wrote:Luis,

Este parece ser el módulo que no has recompilado en 32 bits:

Fatal: Unsupported 16-bit segment(s) in module WINQVOL


Gracias Antonio. El problema en principio fué que los ficheros fuente (.prg) están en un directorio no declarado en el .rmk. Una vez solventado el problema, faltan funciones de librerías propias.

El tema me llamó la atención porque al modificar un fuente no generaba el correspondiente OBJ (viendo fechas). Fuí a HELP de Borlan y visto el tema.

De cualquier modo mil gracias, porque todavía no he obtenido el "!famoso" exe .

Veamos si el resultado el tan eficaz como en FW16....
Luis Jonas
 
Posts: 4
Joined: Sun Jun 22, 2008 9:37 am


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 45 guests

cron