Compilando con Harbour (intentando :-() - SOLUCIONADO!

Compilando con Harbour (intentando :-() - SOLUCIONADO!

Postby MarioG » Mon Nov 10, 2014 2: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'

Cual es mi error?; no creo que no se pueda incluir la llamada Super:ClasePadre()
Mi archivo de compilación es el siguiente:
Code: Select all  Expand view
# 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)
 
Last edited by MarioG on Tue Dec 09, 2014 12:39 pm, edited 1 time in total.
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
MarioG
 
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR


Re: Compilando con Harbour (intentando :-()

Postby MarioG » Mon Nov 10, 2014 9:07 pm

muchas gracias!
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
MarioG
 
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: Compilando con Harbour (intentando :-() - SOLUCIONADO)

Postby MarioG » Mon Nov 10, 2014 9: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'

Cual es mi error?; no creo que no se pueda incluir la llamada Super:ClasePadre()
Mi archivo de compilación es el siguiente:
Code: Select all  Expand view
# 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
User avatar
MarioG
 
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: Compilando con Harbour (intentando :-()

Postby MarioG » Mon Nov 10, 2014 9: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

que me está faltando?
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
MarioG
 
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR


Re: Compilando con Harbour (intentando :-()

Postby MarioG » 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: Select all  Expand view
##############################################################################
# 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
Voy aprobar si no obstante, genera algun error

sigo "oyendo" tips :-)
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
MarioG
 
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: Compilando con Harbour (intentando :-()

Postby hmpaquito » 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.
hmpaquito
 
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Compilando con Harbour (intentando :-()

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42078
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Compilando con Harbour (intentando :-()

Postby MarioG » Wed Nov 12, 2014 1: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)
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
MarioG
 
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: Compilando con Harbour (intentando :-()

Postby MarioG » Wed Nov 12, 2014 1:38 pm

Lei en el otro post sobre CURDRIVE, gracias, :oops: (estoy un poco mareado ya)
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
MarioG
 
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: Compilando con Harbour (intentando :-()

Postby MarioG » 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)
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
MarioG
 
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: Compilando con Harbour (intentando :-()

Postby cnavarro » Thu Nov 13, 2014 4: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
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Compilando con Harbour (intentando :-()

Postby MarioG » 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" :D
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
MarioG
 
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: Compilando con Harbour (intentando :-()

Postby cnavarro » 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=6&t=28506&p=159545&hilit=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
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Next

Return to FiveWin para Harbour/xHarbour

Who is online

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