compilando RDDADS de contrib error HB_UNCONST (RESUELTO)

compilando RDDADS de contrib error HB_UNCONST (RESUELTO)

Postby Patricio Avalos Aguirre » Tue Feb 09, 2016 4: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: Select all  Expand view
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
Last edited by Patricio Avalos Aguirre on Thu Feb 11, 2016 3:04 pm, edited 1 time in total.
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
User avatar
Patricio Avalos Aguirre
 
Posts: 1060
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile

Re: compilando RDDADS de contrib error HB_UNCONST

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

Re: compilando RDDADS de contrib error HB_UNCONST

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

Re: compilando RDDADS de contrib error HB_UNCONST

Postby mastintin » Wed Feb 10, 2016 8: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.
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: compilando RDDADS de contrib error HB_UNCONST

Postby Patricio Avalos Aguirre » Thu Feb 11, 2016 3: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
User avatar
Patricio Avalos Aguirre
 
Posts: 1060
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 100 guests