Page 1 of 1

c5cnew.c no compatible con xHarbour Nov09 + FWH 10.07

PostPosted: Thu Aug 26, 2010 2:44 pm
by George
Desde hace varios años uso la excelente libreria c5lib, creada, por Francisco Garcia (Paco) - Canal5 .
Siempre la he recompilado con la nueva version de xHarbour y FWH sin
ningun tipo de problemas; pero no sucedio asi con la version de
xHarbour de Nov 2009 (la version comercial "xBuilder" de xharbour.com que usa PellesC) y FWH 10.07

Al tratar de compilarla me genera lo siguiente:

Code: Select all  Expand view

Type: C >>>xcc.exe -Fo"c5cnew.obj" -Ot   -I"C:\xHBEnt\include"
-I"C:\xHBEnt\c_include" -I"C:\xHBEnt\c_include\win"
-I"C:\xHBEnt\c_include\msvc" "C:\canal5\libreria\source\c5cnew.c"<<<

C:\canal5\libreria\source\c5cnew.c(886): warning: Local 'nY' is not referenced.
C:\canal5\libreria\source\c5cnew.c(885): warning: Local 'nX' is not referenced.
C:\canal5\libreria\source\c5cnew.c(884): warning: Local 'nAzul' is not
referenced.
C:\canal5\libreria\source\c5cnew.c(884): warning: Local 'nVerde' is
not referenced.
C:\canal5\libreria\source\c5cnew.c(884): warning: Local 'nRojo' is not
referenced.
C:\canal5\libreria\source\c5cnew.c(883): warning: Local 'nColor' is
not referenced.
C:\canal5\libreria\source\c5cnew.c(1134): warning: Missing prototype
for 'C5_IsAppThemed'.
C:\canal5\libreria\source\c5cnew.c(1157): warning: Missing prototype
for 'C5_IsThemeActive'.
C:\canal5\libreria\source\c5cnew.c(2155): warning: Conversion from
'void *' to 'unsigned int' is undefined.
C:\canal5\libreria\source\c5cnew.c(2561): warning: Local 'sz' is not referenced.
C:\canal5\libreria\source\c5cnew.c(3040): error: Extraneous return value.
C:\canal5\libreria\source\c5cnew.c(3150): warning: Local 'hbrPrevious'
is not referenced.

Type: C >>>Couldn't build: c5cnew.obj<<<
Type: C >>>TMAKEOBJECT<<<
Type: C >>>TMAKEOBJECT:REFRESH<<<
Type: N >>>      1423<<<


Paco me autorizo a publicar el fichero c5cnew.c en el foro, a ver si algun compañero nos pueda sugerir la solucion, ya que Paco no esta comercializando mas los componentes de Canal5.

Link to download the file:
http://rapidshare.com/files/415273134/c5cnew.c


Saludos y gracias de antemano


George

Re: c5cnew.c no compatible con xHarbour Nov09 + FWH 10.07

PostPosted: Thu Aug 26, 2010 5:48 pm
by andresreyes_mzt
George,

Antes que nada, El titulo correcto de tu post deberia ser c5cnew.c no es compatible con ANSI C
en especifico el compilador Pelles C, el que utiliza xHarbour Comercial

Aqui la solucion,

** Comentas las siguientes lineas de Codigo
C:\canal5\libreria\source\c5cnew.c(886): warning: Local 'nY' is not referenced.
C:\canal5\libreria\source\c5cnew.c(885): warning: Local 'nX' is not referenced.
C:\canal5\libreria\source\c5cnew.c(884): warning: Local 'nAzul' is not referenced.
C:\canal5\libreria\source\c5cnew.c(884): warning: Local 'nVerde' is not referenced.
C:\canal5\libreria\source\c5cnew.c(884): warning: Local 'nRojo' is not referenced.
C:\canal5\libreria\source\c5cnew.c(883): warning: Local 'nColor' is not referenced.
C:\canal5\libreria\source\c5cnew.c(2561): warning: Local 'sz' is not referenced.


** La declaracion de la funcion esta mal ... necesitas especificar que esta funcion no recibe parametros de la siguiente forma .. eso te resuelve los siguientes 2 errores
C:\canal5\libreria\source\c5cnew.c(1134): warning: Missing prototype for 'C5_IsAppThemed'.
C:\canal5\libreria\source\c5cnew.c(1157): warning: Missing prototype for 'C5_IsThemeActive'.


Code: Select all  Expand view

Antes:
BOOL C5_IsAppThemed()
BOOL C5_IsThemeActive()

Despues:
BOOL C5_IsAppThemed( void )
BOOL C5_IsThemeActive( void )
 




*El primer NULL que encuentres es esa Linea lo reemplazas por 0
C:\canal5\libreria\source\c5cnew.c(2155): warning: Conversion from 'void *' to 'unsigned int' is undefined.


* Para resolver este
C:\canal5\libreria\source\c5cnew.c(3040): error: Extraneous return value.

Reemplazas
Code: Select all  Expand view

HB_FUNC( POW )
{
   return hb_retni( pow( hb_parni( 1 ), hb_parni( 2 ) ) );  
}
 


por:

Code: Select all  Expand view

HB_FUNC( POW )
{
   hb_retni( pow( hb_parni( 1 ), hb_parni( 2 ) ) );
   return;
}
 



** Comentas solo la parte donde se declara esta variable
C:\canal5\libreria\source\c5cnew.c(3150): warning: Local 'hbrPrevious' is not referenced.


Saludos,

Andres Reyes

Re: c5cnew.c no compatible con xHarbour Nov09 + FWH 10.07

PostPosted: Thu Aug 26, 2010 8:00 pm
by George
Andres,
Muchas gracias por tu respuesta y por tu aclaracion sobre el origen del problema.

Applicando los cambios, por ti sugeridos, ya pude compilar la c5clib con xHarbour Nov_09 y FWH 10.07


Saludos

George

Re: c5cnew.c no compatible con xHarbour Nov09 + FWH 10.07

PostPosted: Thu Dec 02, 2010 1:42 pm
by hfabion
Saludos...

El link para acceder al codigo de c5cnew.c esta roto, por favor podrias volverlo a activar ?

He tratado de contactar con Paco Garcia para consultarle por la solucion, pero no ha sido posible.

Un saludo

Re: c5cnew.c no compatible con xHarbour Nov09 + FWH 10.07

PostPosted: Sun Dec 05, 2010 4:42 pm
by AIDA
si porfis :mrgreen:
:wink:

Re: c5cnew.c no compatible con xHarbour Nov09 + FWH 10.07

PostPosted: Sun Dec 05, 2010 9:57 pm
by George
Hola
Aqui esta el nuevo link:

http://rapidshare.com/files/435141485/c5cnew.c

George

Re: c5cnew.c no compatible con xHarbour Nov09 + FWH 10.07

PostPosted: Mon Dec 06, 2010 4:59 pm
by AIDA
Gracias

Pero sale que ya no esta el archivito que ya lo bajaron 10 veces "Unassigned file limit of 10 downloads reached." :cry:

Re: c5cnew.c no compatible con xHarbour Nov09 + FWH 10.07

PostPosted: Mon Dec 06, 2010 8:04 pm
by George
No problem Aida
Aqui esta el nuevo link:
http://rapidshare.com/files/435321150/c5cnew.c

George

Re: c5cnew.c no compatible con xHarbour Nov09 + FWH 10.07

PostPosted: Wed Dec 08, 2010 4:53 am
by AIDA
HOLA

Gracias pero llegue tarde otra vez :oops: si se puede mi correo es aida_p_z@hotmail.com :mrgreen:


Saluditos :wink: