FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Compilar TSBUTTON 7.0, Para Carlos Vargas
Posts: 418
Joined: Wed Nov 26, 2008 06:33 PM
Compilar TSBUTTON 7.0, Para Carlos Vargas
Posted: Mon Jan 25, 2016 05:04 PM
Saludos.

Hace tiempo tuve el mismo problema que hoy: no puedo compilar la lib TSBUTTON 7.0, me marca errores iguales que antes:

Embarcadero C++ 6.50 for Win32 Copyright (c) 1993-2012 Embarcadero Technologies, Inc.
c:\autosys\prgs\tsbutton\source\function\BPAINT.C:
Error E2257 c:\autosys\prgs\bcc\include\dinkumware\yvals.h 960: , expected
Error E2238 c:\autosys\prgs\bcc\include\stdarg.h 32: Multiple declaration for 'va_list'
Error E2344 c:\autosys\prgs\bcc\include\dinkumware\yvals.h 960: Earlier declaration of 'va_list'
*** 3 errors in Compile ***

mis cfg son:
bcc32.cfg
Code (fw): Select all Collapse
-Ic:\autosys\prgs\bcc\include
-Ic:\autosys\prgs\bcc\include\dinkumware
-Ic:\autosys\prgs\bcc\include\windows\crtl
-Ic:\autosys\prgs\bcc\include\windows\rtl
-Ic:\autosys\prgs\bcc\include\windows\sdk
-Lc:\autosys\prgs\bcc\lib;c:\autosys\prgs\fun;c:\autosys\prgs\fwh\lib;c:\autosys\prgs\xharbour\lib
Code (fw): Select all Collapse
ilink32.cfg

-Lc:\autosys\prgs\bcc\lib;c:\autosys\prgs\bcc\lib\psdk;c:\autosys\prgs\fun;c:\autosys\prgs\fwh\lib;c:\autosys\prgs\xharbour\lib
[/code][code]


Una ayudita porfa.
Noé Aburto Sánchez
Tec. Prog. de Sistemas. -Morelia, Mich. México.
fwh 20.06, Harbour 3.2.0, bcc 7.4
TsBrowse 9.0, TsButton 7.0, xEdit 6.1
naburtos@gmail.com, noeaburto67@hotmail.com
Posts: 418
Joined: Wed Nov 26, 2008 06:33 PM
Re: Compilar TSBUTTON 7.0, Para Carlos Vargas
Posted: Mon Jan 25, 2016 05:08 PM

Me refiero a Carlos Vargas, ya que en el programa BPAINT.c, vienen ajustes a su nombre.

Por fa, necesito hacer un cambio a esta lib, para mi uso personal, y no la puedo compilar.

Alguien que me pueda indicar donde bajar una actualizacion de borland c++ 6.5 o mayor para xharbour 1.2.3, fhw 13.07
gracias.

Noé Aburto Sánchez
Tec. Prog. de Sistemas. -Morelia, Mich. México.
fwh 20.06, Harbour 3.2.0, bcc 7.4
TsBrowse 9.0, TsButton 7.0, xEdit 6.1
naburtos@gmail.com, noeaburto67@hotmail.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Compilar TSBUTTON 7.0, Para Carlos Vargas
Posted: Mon Jan 25, 2016 08:54 PM

Noé,

Puedes publicar aqui el código fuente de BPAINT.c ? gracias

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Compilar TSBUTTON 7.0, Para Carlos Vargas
Posted: Mon Jan 25, 2016 08:57 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
Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: Compilar TSBUTTON 7.0, Para Carlos Vargas
Posted: Mon Jan 25, 2016 09:16 PM

Noe, te envie link con el bcc, harbour, xharbour y tsbutton compilado para esa version de compilador c.
salu2
carlos vargas

Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 418
Joined: Wed Nov 26, 2008 06:33 PM
Re: Compilar TSBUTTON 7.0, Para Carlos Vargas
Posted: Mon Jan 25, 2016 11:52 PM
stdarg.h
Code (fw): Select all Collapse
/*  stdarg.h

    Definitions for accessing parameters in functions that accept
    a variable number of arguments.

*/

/*
 *      C/C++ Run Time Library - Version 11.0
 *
 *      Copyright (c) 1987, 2004 by Borland Software Corporation
 *      All Rights Reserved.
 *
 */

/* $Revision: 9.7 $ */

#ifndef __STDARG_H
#define __STDARG_H
#define _INC_STDARG  /* MSC Guard name */

#ifdef __VARARGS_H
#error Can't include both STDARG.H and VARARGS.H
#endif

#include <_stddef.h>

#ifdef __cplusplus
namespace std {
#endif /* __cplusplus */

typedef void _FAR *va_list;

#define __size(x) ((sizeof(x)+sizeof(int)-1) & ~(sizeof(int)-1))

#ifdef __cplusplus
#define va_start(ap, parmN) ((void)((ap) = (std::va_list)((char _FAR *)(&parmN)+__size(parmN))))
#else
#define va_start(ap, parmN) ((void)((ap) = (va_list)((char _FAR *)(&parmN)+__size(parmN))))
#endif

#define va_arg(ap, type) (*(type _FAR *)(((*(char _FAR *_FAR *)&(ap))+=__size(type))-(__size(type))))
#define va_end(ap)          ((void)0)

#if !defined(__STDC__)
#define _va_ptr             (...)
#endif

#ifdef __cplusplus
} // std
#endif /* __cplusplus */

#endif  /* __STDARG_H */

#if defined(__cplusplus) && !defined(__USING_CNAME__) && !defined(__STDARG_H_USING_LIST)
#define __STDARG_H_USING_LIST
     using std::va_list;
#endif /* __USING_CNAME__ */
Noé Aburto Sánchez
Tec. Prog. de Sistemas. -Morelia, Mich. México.
fwh 20.06, Harbour 3.2.0, bcc 7.4
TsBrowse 9.0, TsButton 7.0, xEdit 6.1
naburtos@gmail.com, noeaburto67@hotmail.com
Posts: 418
Joined: Wed Nov 26, 2008 06:33 PM
Re: Compilar TSBUTTON 7.0, Para Carlos Vargas
Posted: Mon Jan 25, 2016 11:54 PM

C.Navarro

la version de tsbutton que publicaste es la misma que tengo, la compile y me marca el mismo error.

Noé Aburto Sánchez
Tec. Prog. de Sistemas. -Morelia, Mich. México.
fwh 20.06, Harbour 3.2.0, bcc 7.4
TsBrowse 9.0, TsButton 7.0, xEdit 6.1
naburtos@gmail.com, noeaburto67@hotmail.com
Posts: 418
Joined: Wed Nov 26, 2008 06:33 PM
Re: Compilar TSBUTTON 7.0, Para Carlos Vargas
Posted: Tue Jan 26, 2016 12:54 AM

Asunto arreglado, con la version bcc7 sin problemas.

Gracias a todos.

Noé Aburto Sánchez
Tec. Prog. de Sistemas. -Morelia, Mich. México.
fwh 20.06, Harbour 3.2.0, bcc 7.4
TsBrowse 9.0, TsButton 7.0, xEdit 6.1
naburtos@gmail.com, noeaburto67@hotmail.com

Continue the discussion