FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour compilando RDDADS de contrib error HB_UNCONST (RESUELTO)
Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
compilando RDDADS de contrib error HB_UNCONST (RESUELTO)
Posted: Tue Feb 09, 2016 04:21 PM
Estimados

estoy tratando de compilar rddads de contribuiciones de este link https://github.com/harbour/core/tree/master/contrib/rddads
pero me sele este error HB_UNCONST

D:\APL\PRGS\ADS\bc7>c:\borland\bcc7\bin\bcc32 -c -tWM -Ic:\hb32\include -ID:\APL\PRGS\ADS\bc7 ads1.c
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc.
ads1.c:
Warning W8065 ads1.c 90: Call to function 'HB_UNCONST' with no prototype in function adsSetListener_callback
Warning W8065 ads1.c 93: Call to function 'HB_UNCONST' with no prototype in function adsSetListener_callback
Warning W8065 ads1.c 105: Call to function 'HB_UNCONST' with no prototype in function adsSetListener_callback
Warning W8065 ads1.c 133: Call to function 'HB_UNCONST' with no prototype in function adsSetSend
Warning W8065 ads1.c 134: Call to function 'HB_UNCONST' with no prototype in function adsSetSend
Warning W8065 ads1.c 138: Call to function 'HB_UNCONST' with no prototype in function adsSetSend
Warning W8065 ads1.c 361: Call to function 'HB_UNCONST' with no prototype in function hb_adsFindBag
Warning W8065 ads1.c 613: Call to function 'HB_UNCONST' with no prototype in function adsScopeSet
Warning W8065 ads1.c 1027: Call to function 'HB_UNCONST' with no prototype in function adsSeek
Warning W8065 ads1.c 2565: Call to function 'HB_UNCONST' with no prototype in function adsPutRec
Warning W8065 ads1.c 2637: Call to function 'HB_UNCONST' with no prototype in function adsPutValue
Warning W8065 ads1.c 2652: Call to function 'HB_UNCONST' with no prototype in function adsPutValue
Warning W8065 ads1.c 2662: Call to function 'HB_UNCONST' with no prototype in function adsPutValue


este el el bat de compilacion
Code (fw): Select all Collapse
rem compilando

rem ace.h sacar de 
rem http://devzone.advantagedatabase.com/dz/content.aspx?key=20
rem Advantage Client Engine

c:\borland\bcc7\bin\bcc32 -c -tWM -Ic:\hb32\include -ID:\APL\PRGS\ADS\bc7 ads1.c
pause
c:\borland\bcc7\bin\bcc32 -c -tWM -Ic:\hb32\include -ID:\APL\PRGS\ADS\bc7 adsfunc.c
c:\borland\bcc7\bin\bcc32 -c -tWM -Ic:\hb32\include -ID:\APL\PRGS\ADS\bc7 adsmgmnt.c
c:\borland\bcc7\bin\bcc32 -c -tWM -Ic:\hb32\include -ID:\APL\PRGS\ADS\bc7 adsx.c

rem creando libreria

c:\borland\bcc7\bin\Tlib rddads 聽+ ads1 + adsfunc + adsmgmnt + adsx

cualquier ayudita es bienvenida
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: compilando RDDADS de contrib error HB_UNCONST
Posted: Tue Feb 09, 2016 06:19 PM

Patricio,

Necesitas usar una versi贸n de Harbour m谩s reciente, ya que hace 19 dias Prezmek actualiz贸 Harbour
y precisamente uno de los cambios es la definici贸n y el uso de HB_UNCONST

Si lo necesitas, puedo construir el Harbour m谩s reciente y hacerlo accesible desde bitbucket
en donde solemos publicar los builds de Harbour y xHarbour

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: compilando RDDADS de contrib error HB_UNCONST
Posted: Tue Feb 09, 2016 06:20 PM

Otra opci贸n es que descargues la versi贸n de esos ficheros de hace 19 dias

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: compilando RDDADS de contrib error HB_UNCONST
Posted: Wed Feb 10, 2016 08:28 AM

A帽ade en hbdefs.h la linea :

define HB_UNCONST( p ) ( ( void * ) ( HB_PTRUINT ) ( const void * ) ( p ) )

con eso ya compilar谩 sin problemas.

Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
Re: compilando RDDADS de contrib error HB_UNCONST
Posted: Thu Feb 11, 2016 03:03 PM

Gracias Antonio y Mastintin

la ultima resuelve el problema

Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl

Continue the discussion