Page 1 of 1

posible solucion: error __streams al usar fwh<24.02 y bcc770

PostPosted: Mon Mar 04, 2024 11:01 pm
by carlos vargas
Siguiendo las indicaciones de enrico al encontrarnos este error, cuando queremos usar bcc 7.70, con una version de fwh anterior a la 24.02
Unresolved external '__streams' referenced from D:\FWH\LIB\FIVEH.LIB|HARBOUR


he realizado este cambio al final del archivo fivewin.ch
Code: Select all  Expand view

#pragma BEGINDUMP
#ifdef __HARBOUR__
#if defined( __BORLANDC__ ) && __BORLANDC__ >= 0x0770
int _streams;
#endif
#endif
#pragma ENDDUMP
 


salu2
carlos vargas

Re: posible solucion: error __streams al usar fwh<24.02 y bcc770

PostPosted: Tue Mar 05, 2024 6:34 am
by Antonio Linares
Gracias Carlos por el aporte!

Re: posible solucion: error __streams al usar fwh<24.02 y bcc770

PostPosted: Tue Mar 05, 2024 8:58 am
by Enrico Maria Giordano
I would prefer to put that definition in a FWH .c file (if it is enough to solve the problem, please check). Otherwise it would be included in each PRG of a project.

Re: posible solucion: error __streams al usar fwh<24.02 y bcc770

PostPosted: Tue Mar 05, 2024 5:20 pm
by Antonio Linares
You are right Enrico

Re: posible solucion: error __streams al usar fwh<24.02 y bcc770

PostPosted: Wed Mar 06, 2024 3:30 am
by carlos vargas
Antonio, sería posible entonces un archivo por ejemplo llamado fix.prg con el contenido que se indico y que se adicione a fiveh.lib?
Probaré y comento...

Re: posible solucion: error __streams al usar fwh<24.02 y bcc770

PostPosted: Wed Mar 06, 2024 6:36 am
by Antonio Linares
Carlos,

No podemos hacer eso o generaríamos símbolos duplicados

Entiendo que la solución correcta es usar el compilador de C adecuado y de no poder actualizar debe ser una solución temporal del desarrollador

Re: posible solucion: error __streams al usar fwh<24.02 y bcc770

PostPosted: Wed Mar 06, 2024 12:38 pm
by carlos vargas
Entiendo..