FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Compilando con Harbour (intentando :-() - SOLUCIONADO!
Posts: 1380
Joined: Fri Oct 14, 2005 01:28 PM
Compilando con Harbour (intentando :-() - SOLUCIONADO!
Posted: Mon Nov 10, 2014 02:47 PM
Gente;
estoy pasando mis fuentes de 3ros a Harbour
Al hacerlo para TSbutton, obtengo siguiente error:
    d:\Mi Harbour\Tsbutton7>bmakeH lib_fwh32
    source\TSButton.prg(95) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(123) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(349) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(529) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(675) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(855) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(966) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(983) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(996) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(1279) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(1319) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(1372) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(1390) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(1462) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(1505) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(1871) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(1889) Warning W0001 Ambiguous reference 'SUPER'[/list:u]

    Cual es mi error?; no creo que no se pueda incluir la llamada Super:ClasePadre()
    Mi archivo de compilaci贸n es el siguiente:
    Code (fw): Select all Collapse
    # Directorios Principales ####################################################
    
    FIVEWIN_DIR 聽 = \Harbour\fwh
    HARBOUR_DIR 聽 = \Harbour
    BORLANDC_DIR 聽= \bcc582
    
    # Make directives ############################################################
    
    .swap
    .suffixes: .prg
    
    # Application directories & filenames ########################################
    
    LIB_NAME 聽 聽 聽 聽 = TSBtn70 聽# (Your LIB name without extension)
    LIB_PRG_DIR 聽 聽 聽= source 聽# .
    LIB_OBJ_DIR 聽 聽 聽= obj 聽 聽 聽# (create the app\obj directory first)
    LIB_INCLUDE_DIR 聽= include 聽# .
    LIB_LIB_DIR 聽 聽 聽= lib 聽 聽 聽# $(LIB_PRG_DIR)
    
    LIB_LIB 聽= $(LIB_LIB_DIR)\$(LIB_NAME).lib
    
    
    # Paths for dependent files ##################################################
    
    .path.c 聽 = $(LIB_PRG_DIR)
    .path.prg = $(LIB_PRG_DIR)
    .path.obj = $(LIB_OBJ_DIR)
    
    # Application PRG and C files (your PRG/C files go here) #####################
    
    LIB_PRG_LIST = \
    聽 聽TSButton.prg \
    聽 聽TSBar.prg \
    聽 聽TSLines.prg \
    聽 聽TSRadio.prg \
    聽 聽TSTSay.prg \
    聽 聽TSGradie.prg \
    聽 聽BPaint.c
    
    # Contruction of the rest dependency lists ###################################
    
    LIB_PRGS = $(LIB_PRG_LIST)
    
    TMP_001 聽= $(LIB_PRG_LIST:.prg=.obj)
    LIB_OBJ 聽= $(TMP_001:.c=.obj)
    
    LIB_TMP0 = OBJ\$(LIB_OBJ:.obj=.obj +OBJ\)
    LIB_TMP1 = $(LIB_TMP0: =)
    LIB_TMP2 = $(LIB_TMP1:.obj=.obj )_
    LIB_TMP3 = +$(LIB_TMP2:+OBJ\_=)
    
    
    # Fivewin directories ########################################################
    
    FIVEWIN_INCLUDE_DIR = $(FIVEWIN_DIR)\include
    
    # Harbour directories & flags ################################################
    
    HARBOUR_INCLUDE_DIR = $(HARBOUR_DIR)\include
    HARBOUR_EXE_DIR 聽 聽 = $(HARBOUR_DIR)\bin
    HARBOUR_FLAGS 聽 聽 聽 = -i$(LIB_INCLUDE_DIR);$(FIVEWIN_INCLUDE_DIR);$(HARBOUR_INCLUDE_DIR) -n -m -w -es2 -gc0
    HARBOUR_EXE 聽 聽 聽 聽 = $(HARBOUR_EXE_DIR)\harbour.exe
    
    # Borlanc directories & flags ################################################
    
    BORLANDC_INCLUDE_DIR = $(BORLANDC_DIR)\include;$(FIVEWIN_INCLUDE_DIR)
    BORLANDC_EXE_DIR 聽 聽 = $(BORLANDC_DIR)\bin
    BORLANDC_LIB_DIR 聽 聽 = $(BORLANDC_DIR)\lib
    BORLANDC_COMP_FLAGS 聽= -M -D__HARBOUR__ -c -O2 -I$(HARBOUR_INCLUDE_DIR);$(BORLANDC_INCLUDE_DIR) -D__HARBOUR__;HB_API_MACROS;HB_FM_STATISTICS_OFF
    BORLANDC_COMP_EXE 聽 聽= $(BORLANDC_EXE_DIR)\bcc32.exe
    BORLANDC_TLIB_EXE 聽 聽= $(BORLANDC_EXE_DIR)\tlib.exe
    
    # Dependencies ###############################################################
    
    all: $(LIB_OBJ) $(LIB_PRGS) $(LIB_LIB)
    
    # Implicit Rules #############################################################
    
    .prg.obj:
    聽 聽@$(HARBOUR_EXE) $(HARBOUR_FLAGS) $** -o$(LIB_OBJ_DIR)\temp.c
    聽 聽@$(BORLANDC_COMP_EXE) $(BORLANDC_COMP_FLAGS) -o$@ $(LIB_OBJ_DIR)\temp.c
    聽 聽@if exist $(LIB_OBJ_DIR)\temp.c $(DEL) $(LIB_OBJ_DIR)\temp.c
    
    .c.obj:
    聽 聽@$(BORLANDC_COMP_EXE) $(BORLANDC_COMP_FLAGS) -o$@ $**
    
    
    # Explicit Rules #############################################################
    
    $(LIB_LIB) :: $(LIB_OBJ)
    聽 @if exist $(LIB_LIB) $(DEL) $(LIB_LIB)
    聽 @$(BORLANDC_TLIB_EXE) $(LIB_LIB) /P32 $(LIB_TMP3)
Resistencia - "Ciudad de las Esculturas"

Chaco - Argentina
Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: Compilando con Harbour (intentando :-()
Posted: Mon Nov 10, 2014 03:54 PM
Posts: 1380
Joined: Fri Oct 14, 2005 01:28 PM
Re: Compilando con Harbour (intentando :-()
Posted: Mon Nov 10, 2014 09:07 PM

muchas gracias!

Resistencia - "Ciudad de las Esculturas"

Chaco - Argentina
Posts: 1380
Joined: Fri Oct 14, 2005 01:28 PM
Re: Compilando con Harbour (intentando :-() - SOLUCIONADO)
Posted: Mon Nov 10, 2014 09:07 PM
MarioG wrote:Gente;
estoy pasando mis fuentes de 3ros a Harbour
Al hacerlo para TSbutton, obtengo siguiente error:
    d:\Mi Harbour\Tsbutton7>bmakeH lib_fwh32
    source\TSButton.prg(95) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(123) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(349) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(529) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(675) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(855) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(966) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(983) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(996) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(1279) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(1319) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(1372) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(1390) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(1462) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(1505) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(1871) Warning W0001 Ambiguous reference 'SUPER'
    source\TSButton.prg(1889) Warning W0001 Ambiguous reference 'SUPER'[/list:u]

    Cual es mi error?; no creo que no se pueda incluir la llamada Super:ClasePadre()
    Mi archivo de compilaci贸n es el siguiente:
    Code (fw): Select all Collapse
    # Directorios Principales ####################################################
    
    FIVEWIN_DIR 聽 = \Harbour\fwh
    HARBOUR_DIR 聽 = \Harbour
    BORLANDC_DIR 聽= \bcc582
    
    # Make directives ############################################################
    
    .swap
    .suffixes: .prg
    
    # Application directories & filenames ########################################
    
    LIB_NAME 聽 聽 聽 聽 = TSBtn70 聽# (Your LIB name without extension)
    LIB_PRG_DIR 聽 聽 聽= source 聽# .
    LIB_OBJ_DIR 聽 聽 聽= obj 聽 聽 聽# (create the app\obj directory first)
    LIB_INCLUDE_DIR 聽= include 聽# .
    LIB_LIB_DIR 聽 聽 聽= lib 聽 聽 聽# $(LIB_PRG_DIR)
    
    LIB_LIB 聽= $(LIB_LIB_DIR)\$(LIB_NAME).lib
    
    
    # Paths for dependent files ##################################################
    
    .path.c 聽 = $(LIB_PRG_DIR)
    .path.prg = $(LIB_PRG_DIR)
    .path.obj = $(LIB_OBJ_DIR)
    
    # Application PRG and C files (your PRG/C files go here) #####################
    
    LIB_PRG_LIST = \
    聽 聽TSButton.prg \
    聽 聽TSBar.prg \
    聽 聽TSLines.prg \
    聽 聽TSRadio.prg \
    聽 聽TSTSay.prg \
    聽 聽TSGradie.prg \
    聽 聽BPaint.c
    
    # Contruction of the rest dependency lists ###################################
    
    LIB_PRGS = $(LIB_PRG_LIST)
    
    TMP_001 聽= $(LIB_PRG_LIST:.prg=.obj)
    LIB_OBJ 聽= $(TMP_001:.c=.obj)
    
    LIB_TMP0 = OBJ\$(LIB_OBJ:.obj=.obj +OBJ\)
    LIB_TMP1 = $(LIB_TMP0: =)
    LIB_TMP2 = $(LIB_TMP1:.obj=.obj )_
    LIB_TMP3 = +$(LIB_TMP2:+OBJ\_=)
    
    
    # Fivewin directories ########################################################
    
    FIVEWIN_INCLUDE_DIR = $(FIVEWIN_DIR)\include
    
    # Harbour directories & flags ################################################
    
    HARBOUR_INCLUDE_DIR = $(HARBOUR_DIR)\include
    HARBOUR_EXE_DIR 聽 聽 = $(HARBOUR_DIR)\bin
    HARBOUR_FLAGS 聽 聽 聽 = -i$(LIB_INCLUDE_DIR);$(FIVEWIN_INCLUDE_DIR);$(HARBOUR_INCLUDE_DIR) -n -m -w -es2 -gc0
    HARBOUR_EXE 聽 聽 聽 聽 = $(HARBOUR_EXE_DIR)\harbour.exe
    
    # Borlanc directories & flags ################################################
    
    BORLANDC_INCLUDE_DIR = $(BORLANDC_DIR)\include;$(FIVEWIN_INCLUDE_DIR)
    BORLANDC_EXE_DIR 聽 聽 = $(BORLANDC_DIR)\bin
    BORLANDC_LIB_DIR 聽 聽 = $(BORLANDC_DIR)\lib
    BORLANDC_COMP_FLAGS 聽= -M -D__HARBOUR__ -c -O2 -I$(HARBOUR_INCLUDE_DIR);$(BORLANDC_INCLUDE_DIR) -D__HARBOUR__;HB_API_MACROS;HB_FM_STATISTICS_OFF
    BORLANDC_COMP_EXE 聽 聽= $(BORLANDC_EXE_DIR)\bcc32.exe
    BORLANDC_TLIB_EXE 聽 聽= $(BORLANDC_EXE_DIR)\tlib.exe
    
    # Dependencies ###############################################################
    
    all: $(LIB_OBJ) $(LIB_PRGS) $(LIB_LIB)
    
    # Implicit Rules #############################################################
    
    .prg.obj:
    聽 聽@$(HARBOUR_EXE) $(HARBOUR_FLAGS) $** -o$(LIB_OBJ_DIR)\temp.c
    聽 聽@$(BORLANDC_COMP_EXE) $(BORLANDC_COMP_FLAGS) -o$@ $(LIB_OBJ_DIR)\temp.c
    聽 聽@if exist $(LIB_OBJ_DIR)\temp.c $(DEL) $(LIB_OBJ_DIR)\temp.c
    
    .c.obj:
    聽 聽@$(BORLANDC_COMP_EXE) $(BORLANDC_COMP_FLAGS) -o$@ $**
    
    
    # Explicit Rules #############################################################
    
    $(LIB_LIB) :: $(LIB_OBJ)
    聽 @if exist $(LIB_LIB) $(DEL) $(LIB_LIB)
    聽 @$(BORLANDC_TLIB_EXE) $(LIB_LIB) /P32 $(LIB_TMP3)
Resistencia - "Ciudad de las Esculturas"

Chaco - Argentina
Posts: 1380
Joined: Fri Oct 14, 2005 01:28 PM
Re: Compilando con Harbour (intentando :-()
Posted: Mon Nov 10, 2014 09:24 PM
Ahora vamos por algo mas dif铆cil, para mi, el error de compilaci贸n es en el fuente bpaint.c
Y de "c", solo conozco su nombre :-)
Este es el error al compilarlo:
    Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
    source\BPAINT.C:
    Error E2238 \Harbour\include\clipdefs.h 80: Multiple declaration for 'WORD'
    Error E2344 \bcc582\include\windef.h 155: Earlier declaration of 'WORD'
    Error E2238 \Harbour\include\clipdefs.h 82: Multiple declaration for 'PWORD'
    Error E2344 \bcc582\include\windef.h 164: Earlier declaration of 'PWORD'
    Error E2238 \Harbour\include\clipdefs.h 102: Multiple declaration for 'BOOL'
    Error E2344 \bcc582\include\windef.h 153: Earlier declaration of 'BOOL'
    Error E2238 \Harbour\include\clipdefs.h 105: Multiple declaration for 'PBOOL'
    Error E2344 \bcc582\include\windef.h 158: Earlier declaration of 'PBOOL'
    Error E2238 \Harbour\include\clipdefs.h 114: Multiple declaration for 'HANDLE'
    Error E2344 \bcc582\include\winnt.h 335: Earlier declaration of 'HANDLE'
    Error E2293 source\BPAINT.C 12: ) expected
    Warning W8019 source\BPAINT.C 84: Code has no effect in function HB_FUN_SBTNPAINT
    Error E2379 source\BPAINT.C 84: Statement missing ; in function HB_FUN_SBTNPAINT
    Error E2140 source\BPAINT.C 85: Declaration is not allowed here in function HB_FUN_SBTNPAINT
    Warning W8019 source\BPAINT.C 86: Code has no effect in function HB_FUN_SBTNPAINT
    Error E2379 source\BPAINT.C 86: Statement missing ; in function HB_FUN_SBTNPAINT
    Error E2140 source\BPAINT.C 87: Declaration is not allowed here in function HB_FUN_SBTNPAINT
    Error E2140 source\BPAINT.C 88: Declaration is not allowed here in function HB_FUN_SBTNPAINT
    Error E2140 source\BPAINT.C 89: Declaration is not allowed here in function HB_FUN_SBTNPAINT
    Error E2140 source\BPAINT.C 90: Declaration is not allowed here in function HB_FUN_SBTNPAINT
    Error E2140 source\BPAINT.C 91: Declaration is not allowed here in function HB_FUN_SBTNPAINT
    Error E2140 source\BPAINT.C 92: Declaration is not allowed here in function HB_FUN_SBTNPAINT
    Error E2140 source\BPAINT.C 93: Declaration is not allowed here in function HB_FUN_SBTNPAINT
    Error E2451 source\BPAINT.C 103: Undefined symbol 'nHeight' in function HB_FUN_SBTNPAINT
    Error E2451 source\BPAINT.C 127: Undefined symbol 'nBkOld' in function HB_FUN_SBTNPAINT
    Error E2314 source\BPAINT.C 161: Call of nonfunction in function HB_FUN_SBTNPAINT
    Error E2314 source\BPAINT.C 193: Call of nonfunction in function HB_FUN_SBTNPAINT
    Error E2228 source\BPAINT.C 193: Too many error or warning messages in function HB_FUN_SBTNPAINT
    *** 26 errors in Compile ***

    ** error 1 ** deleting obj\BPaint.obj
    [/list:u]

    que me est谩 faltando?
Resistencia - "Ciudad de las Esculturas"

Chaco - Argentina
Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: Compilando con Harbour (intentando :-()
Posted: Tue Nov 11, 2014 08:14 AM
Posts: 1380
Joined: Fri Oct 14, 2005 01:28 PM
Re: Compilando con Harbour (intentando :-()
Posted: Wed Nov 12, 2014 11:23 AM
Hola;
la soluci贸n, del post de Antonio, no anduvo.
Lo agrego en mi .mak, lo que me faltaba era el inlude de FWH, pero deveuvle los mismos errores que postee anteriormente.
Este es mi .mak; si hay algo que no corresponde soy todo 'orejas' :-)
Code (fw): Select all Collapse
##############################################################################
# Template para construir libreria TWBrowse con xHarbour. 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽#
# Copyright (c) 2004 Hernan Diego Ceccarelli. 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽#
##############################################################################

# Win2000 bug ################################################################
# Uncomment next line if you receive any DEL error ###########################
# set DEL=cmd /c del

!if !$d(DEL)
聽 聽DEL = del
!endif

# Directorios Principales ####################################################

FIVEWIN_DIR 聽 = \Harbour\fwh
HARBOUR_DIR 聽 = \Harbour
BORLANDC_DIR 聽= \bcc582

# Make directives ############################################################

.swap
.suffixes: .prg

# Application directories & filenames ########################################

LIB_NAME 聽 聽 聽 聽 = TSBtn70 聽# (Your LIB name without extension)
LIB_PRG_DIR 聽 聽 聽= source 聽# .
LIB_OBJ_DIR 聽 聽 聽= obj 聽 聽 聽# (create the app\obj directory first)
LIB_INCLUDE_DIR 聽= include 聽# .
LIB_LIB_DIR 聽 聽 聽= lib 聽 聽 聽# $(LIB_PRG_DIR)

LIB_LIB 聽= $(LIB_LIB_DIR)\$(LIB_NAME).lib


# Paths for dependent files ##################################################

.path.c 聽 = $(LIB_PRG_DIR)
.path.prg = $(LIB_PRG_DIR)
.path.obj = $(LIB_OBJ_DIR)

# Application PRG and C files (your PRG/C files go here) #####################

LIB_PRG_LIST = \
聽 聽TSButton.prg \
聽 聽TSBar.prg \
聽 聽TSLines.prg \
聽 聽TSRadio.prg \
聽 聽TSTSay.prg \
聽 聽TSGradie.prg \
聽 聽BPaint.c

# Contruction of the rest dependency lists ###################################

LIB_PRGS = $(LIB_PRG_LIST)

TMP_001 聽= $(LIB_PRG_LIST:.prg=.obj)
LIB_OBJ 聽= $(TMP_001:.c=.obj)

LIB_TMP0 = OBJ\$(LIB_OBJ:.obj=.obj +OBJ\)
LIB_TMP1 = $(LIB_TMP0: =)
LIB_TMP2 = $(LIB_TMP1:.obj=.obj )_
LIB_TMP3 = +$(LIB_TMP2:+OBJ\_=)


# Fivewin directories ########################################################

FIVEWIN_INCLUDE_DIR = $(FIVEWIN_DIR)\include

# Harbour directories & flags ################################################

HARBOUR_INCLUDE_DIR = $(HARBOUR_DIR)\include
HARBOUR_EXE_DIR 聽 聽 = $(HARBOUR_DIR)\bin
HARBOUR_FLAGS 聽 聽 聽 = -i$(LIB_INCLUDE_DIR);$(FIVEWIN_INCLUDE_DIR);$(HARBOUR_INCLUDE_DIR) -n -m -w -es2 -gc0
HARBOUR_EXE 聽 聽 聽 聽 = $(HARBOUR_EXE_DIR)\harbour.exe

# Borlanc directories & flags ################################################

BORLANDC_INCLUDE_DIR = $(BORLANDC_DIR)\include;$(FIVEWIN_INCLUDE_DIR)
BORLANDC_EXE_DIR 聽 聽 = $(BORLANDC_DIR)\bin
BORLANDC_LIB_DIR 聽 聽 = $(BORLANDC_DIR)\lib
BORLANDC_COMP_FLAGS 聽= -M -D__HARBOUR__ -c -O2 -I$(HARBOUR_INCLUDE_DIR);$(FIVEWIN_INCLUDE_DIR);$(BORLANDC_INCLUDE_DIR) -D__HARBOUR__;HB_API_MACROS;HB_FM_STATISTICS_OFF
BORLANDC_COMP_EXE 聽 聽= $(BORLANDC_EXE_DIR)\bcc32.exe
BORLANDC_TLIB_EXE 聽 聽= $(BORLANDC_EXE_DIR)\tlib.exe

# Dependencies ###############################################################

all: $(LIB_OBJ) $(LIB_PRGS) $(LIB_LIB)

# Implicit Rules #############################################################

.prg.obj:
聽 聽@$(HARBOUR_EXE) $(HARBOUR_FLAGS) $** -o$(LIB_OBJ_DIR)\temp.c
聽 聽@$(BORLANDC_COMP_EXE) $(BORLANDC_COMP_FLAGS) -o$@ $(LIB_OBJ_DIR)\temp.c
聽 聽@if exist $(LIB_OBJ_DIR)\temp.c $(DEL) $(LIB_OBJ_DIR)\temp.c

.c.obj:
聽 聽@$(BORLANDC_COMP_EXE) $(BORLANDC_COMP_FLAGS) -o$@ $**


# Explicit Rules #############################################################

$(LIB_LIB) :: $(LIB_OBJ)
聽 @if exist $(LIB_LIB) $(DEL) $(LIB_LIB)
聽 @$(BORLANDC_TLIB_EXE) $(LIB_LIB) /P32 $(LIB_TMP3)

Si intento compilar desde la l铆nea del DOS, con lo que figura en el post de Antonio, me devuelve varios warnings
    d:\Mi Harbour\Tsbutton7>d:\bcc582\bin\bcc32 -c -Ic:\harbour\include -Id:\harbour
    \fwh\include .\source\BPAINT.C
    Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
    .\source\BPAINT.C:
    Warning W8065 .\source\BPAINT.C 2337: Call to function 'hb_parnl' with no protot
    ype in function HB_FUNC
    Warning W8065 .\source\BPAINT.C 2338: Call to function 'hb_parnl' with no protot
    ype in function HB_FUNC
    Warning W8065 .\source\BPAINT.C 2345: Call to function 'hb_retl' with no prototy
    pe in function HB_FUNC
    Warning W8070 .\source\BPAINT.C 2346: Function should return a value in function
    HB_FUNC
    Warning W8057 .\source\BPAINT.C 2346: Parameter 'ISALPHABITMAP' is never used in
    function HB_FUNC[/list:u]
    Voy aprobar si no obstante, genera algun error

    sigo "oyendo" tips :-)
Resistencia - "Ciudad de las Esculturas"

Chaco - Argentina
Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: Compilando con Harbour (intentando :-()
Posted: Wed Nov 12, 2014 11:40 AM

Si compila, enlaza y se ejecuta bien no veo razon para preocuparse por los warnings: yo seguiria la migracion hacia el proximo hito.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Compilando con Harbour (intentando :-()
Posted: Wed Nov 12, 2014 11:40 AM

Mario,

En BPAINT.C solo debes tener estos ficheros de cabecera:

include <windows.h>

include <hbapi.h>

de momento elimina los dem谩s

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1380
Joined: Fri Oct 14, 2005 01:28 PM
Re: Compilando con Harbour (intentando :-()
Posted: Wed Nov 12, 2014 01:36 PM
Muchas gracias Antonio
se soluciona a medias...
Ahora me arroja el siguiente error (pero no cuando lo compilo para generar la lib), sino al generar mi proyecto
Ademas del CURDRIVE
    --------------------Configuraci贸n: pru32 - Debug--------------------
    Harbour 3.2.0dev (r1406161338)
    Copyright (c) 1999-2014, http://harbour-project.org/
    Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
    SendMail.c:
    Borland Resource Compiler Version 5.40
    Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.
    Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
    Error: Unresolved external '_ISLOGICAL' referenced from D:\HARBOUR\3LIB\TSBTN70.LIB|BPaint
    Error: Unresolved external '__parni' referenced from D:\HARBOUR\3LIB\TSBTN70.LIB|BPaint
    Error: Unresolved external '_HB_FUN_CURDRIVE' referenced from D:\FUEN32\PRU32\DEBUG\SENDMAIL.OBJ
    sendmail.EXE - 3 error(es), 0 advertencia(s)
    [/list:u]
Resistencia - "Ciudad de las Esculturas"

Chaco - Argentina
Posts: 1380
Joined: Fri Oct 14, 2005 01:28 PM
Re: Compilando con Harbour (intentando :-()
Posted: Wed Nov 12, 2014 01:38 PM

Lei en el otro post sobre CURDRIVE, gracias, :oops: (estoy un poco mareado ya)

Resistencia - "Ciudad de las Esculturas"

Chaco - Argentina
Posts: 1380
Joined: Fri Oct 14, 2005 01:28 PM
Re: Compilando con Harbour (intentando :-()
Posted: Thu Nov 13, 2014 12:09 PM
Ayuda... no puedo avanzar
Me arroja el siguiente error (pero no cuando lo compilo para generar la lib), sino al generar mi proyecto
O sea, la compilacion de los fuentes TSButton7 se realiza, luego, al compilar mi proyecto me devuelve lo siguiente:
MarioG wrote:
    --------------------Configuraci贸n: pru32 - Debug--------------------
    Harbour 3.2.0dev (r1406161338)
    Copyright (c) 1999-2014, http://harbour-project.org/
    Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
    SendMail.c:
    Borland Resource Compiler Version 5.40
    Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.
    Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
    Error: Unresolved external '_ISLOGICAL' referenced from D:\HARBOUR\3LIB\TSBTN70.LIB|BPaint
    Error: Unresolved external '__parni' referenced from D:\HARBOUR\3LIB\TSBTN70.LIB|BPaint
    sendmail.EXE - 2 error(es), 0 advertencia(s)
    [/list:u]
Resistencia - "Ciudad de las Esculturas"

Chaco - Argentina
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Compilando con Harbour (intentando :-()
Posted: Thu Nov 13, 2014 04:39 PM
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1380
Joined: Fri Oct 14, 2005 01:28 PM
Re: Compilando con Harbour (intentando :-()
Posted: Fri Nov 14, 2014 12:36 PM
Gracias Cristobal!
Ayudo... aunque todav铆a queda una piedra en el camino
Lo curioso, para mi, es con la funci贸n _parni
Si la escribo como hb_parni me arroja el siguiente error
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
source\BPAINT.C:
Error E2227 source\BPAINT.C 1870: Extra parameter in call to hb_parni in function HB_FUN_DRAWLIMIT
Error E2227 source\BPAINT.C 1871: Extra parameter in call to hb_parni in function HB_FUN_DRAWLIMIT
Error E2227 source\BPAINT.C 1872: Extra parameter in call to hb_parni in function HB_FUN_DRAWLIMIT
Error E2227 source\BPAINT.C 1873: Extra parameter in call to hb_parni in function HB_FUN_DRAWLIMIT
Error E2227 source\BPAINT.C 2013: Extra parameter in call to hb_parni in function HB_FUN_GRADCOLOR
Error E2227 source\BPAINT.C 2014: Extra parameter in call to hb_parni in function HB_FUN_GRADCOLOR
Error E2227 source\BPAINT.C 2015: Extra parameter in call to hb_parni in function HB_FUN_GRADCOLOR
Error E2227 source\BPAINT.C 2016: Extra parameter in call to hb_parni in function HB_FUN_GRADCOLOR

si lo dejo como _parni, genera el obj -> lib
Peroooo... al compilar mi aplicaci贸n me da este error:
--------------------Configuraci贸n: pru32 - Debug--------------------
Harbour 3.2.0dev (r1406161338)
Copyright (c) 1999-2014, http://harbour-project.org/
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
SendMail.c:
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '__parni' referenced from D:\HARBOUR\3LIB\TSBTN70.LIB|BPaint
sendmail.EXE - 1 error(es), 0 advertencia(s)
"to be or not to be" :-)
Resistencia - "Ciudad de las Esculturas"

Chaco - Argentina
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Compilando con Harbour (intentando :-()
Posted: Fri Nov 14, 2014 11:11 PM

Mario, la funcion correcta es hb_parni( param1 ) pero creo que en xharbour permitia dos par谩metros
Mira

viewtopic.php?f=6t=28506p=159545hilit=Hb_parni#p159545

&&&

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces