Page 3 of 4
Re: Funciones propias en una lib
Posted:
Thu Jan 19, 2017 4:08 pm
by Antonio Linares
Aqui falta el path al CH de FWH:
$(HBDIR)\bin\harbour $< /N /W /es2 /Oobjh\ /I.\include;$(HBDIR)\include;c:\FWH\include > comp.log
Re: Funciones propias en una lib
Posted:
Thu Jan 19, 2017 4:31 pm
by Compuin
Gracias Maestro
Ahora arroja este error
C:\SGE>go
C:\SGE>set path=C:\bcc7\bin
C:\SGE>make -fmylib.mak
MAKE Version 5.41 Copyright (c) 1987, 2014 Embarcadero Technologies, Inc.
c:\harbour\bin\harbour .\prg\mainwin.prg /N /W /es2 /Oobjh\ /I.\include;c:\
harbour\include;c:\FWH\include > comp.log
.\mainwin.prg(5) Error E0032 Can't create output file 'objh\mainwin.c'
** error 1 ** deleting .\mainwin.obj
C:\SGE>go
MAINWIN.PRG
#include "fivewin.ch"
function test()
? "test"
return nil
Re: Funciones propias en una lib
Posted:
Thu Jan 19, 2017 4:38 pm
by Antonio Linares
Existe la carpeta objh ?
Re: Funciones propias en una lib
Posted:
Thu Jan 19, 2017 4:39 pm
by Antonio Linares
Puedes cambiar esta línea asi:
$(HDIR)\bin\harbour $< /N /W /es2 /I.\include;$(HDIR)\include > comp.log
Re: Funciones propias en una lib
Posted:
Thu Jan 19, 2017 4:49 pm
by Compuin
Maestro
Con ese ultimo cambio vuelvo a tener este error
comp.log
.\prg\test.prg(1) Error F0029 Can't open #include file 'FiveWin.ch'
Re: Funciones propias en una lib
Posted:
Thu Jan 19, 2017 4:57 pm
by Compuin
Ahora este
C:\SGE>make -mylib.mak
MAKE Version 5.41 Copyright (c) 1987, 2014 Embarcadero Technologies, Inc.
c:\harbour\bin\harbour .\prg\test.prg /N /W /es2 /Oobj\ /I.\include;c:\harbour\include;c:\FWH\include > comp.log
c:\bcc7\bin\bcc32 -c -tWM -w-pia -Ic:\harbour\include -Iinclude -oobj\test obj\test.c
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc.
obj\test.c:
c:\bcc7\bin\TLib mylib.lib -+.\test.obj /0 /P64,,
TLIB 6.4 Copyright (c) 1987-2014 Embarcadero Technologies, Inc.
Warning: 'test' not found in library
Warning: '.\test.obj' file not found
C:\SGE>
en la carpeta .\obj se crean test.c y test.obj
Re: Funciones propias en una lib
Posted:
Thu Jan 19, 2017 5:16 pm
by Antonio Linares
Ya no hay ningún error
Ahora debe haberse creado la librería mylib.lib
Ha mostrado dos avisos (warnings) que pueden ignorarse
Re: Funciones propias en una lib
Posted:
Thu Jan 19, 2017 5:21 pm
by Compuin
Asi es,
Logro crear la libreria, mil gracias
En cuanto a los avisos? Solo ignorarlos ? O se pueden apagar ? No causara que la lib falle ?
Re: Funciones propias en una lib
Posted:
Thu Jan 19, 2017 5:22 pm
by Antonio Linares
Ignóralos tranquilamente. La librería está bien
Re: Funciones propias en una lib
Posted:
Thu Jan 19, 2017 5:28 pm
by Compuin
Mil gracias maestro y Cristobal por su valioso apoyo
Re: Funciones propias en una lib (Solucionado)
Posted:
Fri Feb 03, 2017 6:46 pm
by Compuin
Hola
Al momento de ver el contenido de la lib con Explorer lib v2.0 esta aparece vacia.
De que otra forma puedo comprobar si los prg fueron incorporados en la lib ?
Atento a sus comentarios
Re: Funciones propias en una lib (Solucionado)
Posted:
Fri Feb 03, 2017 8:30 pm
by MarioG
Compuin
En \BCC(el que uses)\Bin existe TLib.exe (que si observas tu .mak es el .exe llamado para construir la lib
Si ejecutas desde el DOS, TLib veras su ayuda:
d:\Bat>tlib
TLIB 6.4 Copyright (c) 1987-2014 Embarcadero Technologies, Inc.
Syntax: TLIB options libname [commands | files], listfile
libname library file pathname
commands sequence of operations to be performed (optional)
listfile file name for listing file (optional)
A command is of the form: <symbol>module, where <symbol> is:
+ add module to the library
- delete module from the library
* extract module without removing it
-+ or +- update module in library
-* or *- extract module and remove it
Set the default action for modules without a specified command:
/a add module to the library
/d delete module from library
/e extract module without removal
/u update module in library
/x extract module and remove it from library
/L write listfile to stdout
/N disable support of command syntax
/O enable support of command syntax
/A write GNU AR format archive with ELF objs
/C case-sensitive library
/PSIZE set the library page size to SIZE
/0 purge comment records
/8 output encoding is utf-8
Use @filepath to continue from file "filepath".
Use '&' at end of a line to continue onto the next line.
Y en articular, respondiendo a tu consulta:
TLIB options libname [commands | files], listfile
De manera que ingresando:
- Code: Select all Expand view
Tlib tulib.lib, funciones.lst
Envia a funciones.lst (el nombre es un ej.) la lista de .prg contenidos, en tu lib, y sus funciones
Re: Funciones propias en una lib (Solucionado)
Posted:
Fri Feb 03, 2017 8:34 pm
by Compuin
Si esta creando la lib pero aparentemente vacia
Re: Funciones propias en una lib (Solucionado)
Posted:
Tue Jun 18, 2019 1:46 am
by ruben Dario
Saludos al forum.
Segun el ejemplo
Tlib tulib.lib, funciones.lst
El funciones.lst se puede crear al compilar los -prg o hay que crearlo manualmente.
Segun al crear la Lib colocan estos parametros TLIB .... /0 /P64,,
que pasa si no se colocan estos parametros /0 /P64,,
Re: Funciones propias en una lib (Solucionado)
Posted:
Tue Jun 18, 2019 1:54 am
by Compuin
ruben Dario wrote:Saludos al forum.
Segun el ejemplo
Tlib tulib.lib, funciones.lst
El funciones.lst se puede crear al compilar los -prg o hay que crearlo manualmente.
Segun al crear la Lib colocan estos parametros TLIB .... /0 /P64,,
que pasa si no se colocan estos parametros /0 /P64,,
Muchas gracias