Page 2 of 4
Re: Funciones propias en una lib
Posted: Tue Jan 17, 2017 6:14 am
by Antonio Linares
Cambia esta línea:
mylib.lib : $(PRG:.PRG=.OBJ)
así:
mylib.lib : $(PRG:.prg=.obj)
Y está tambien:
.PRG.OBJ:
con:
.prg.obj:
Los ficheros make distinguen entre mayúsculas y minúsculas
Re: Funciones propias en una lib
Posted: Tue Jan 17, 2017 6:15 am
by Antonio Linares
Y esta:
.C.OBJ:
por:
.c.obj:
Re: Funciones propias en una lib
Posted: Tue Jan 17, 2017 8:04 pm
by Compuin
Gracias maestro
Ahora arroja este error
C:\SGE>make -fmylib.mak
MAKE Version 5.41 Copyright (c) 1987, 2014 Embarcadero Technologies, Inc.
\bin\harbour .\prg\mainwin.prg /N /W /es2 /Oobjh\ /I.\include;\include >
comp.log
Fatal: Unable to execute command: \bin\harbour
C:\SGE>mylib
Re: Funciones propias en una lib
Posted: Tue Jan 17, 2017 8:50 pm
by goosfancito
proba el programa que hice hace un tiempo se llama Make Script2 si mal no recuerdo.
Re: Funciones propias en una lib
Posted: Tue Jan 17, 2017 8:52 pm
by Compuin
No, gracias
Prefiero los mak y bat
Re: Funciones propias en una lib
Posted: Tue Jan 17, 2017 9:39 pm
by goosfancito
ok.
Re: Funciones propias en una lib
Posted: Wed Jan 18, 2017 3:07 pm
by Compuin
Algun advise ?
Re: Funciones propias en una lib
Posted: Wed Jan 18, 2017 3:58 pm
by acuellar
Yo uso un .PRG donde coloco todas mis funciones comunes que se llama FUNCIONES.PRG y es como un programa mas.
Poner las funciones o procesos en una LIB implica que si se hace algún cambio hay que recompilarla.
Re: Funciones propias en una lib
Posted: Wed Jan 18, 2017 4:00 pm
by Compuin
Asi es pero esta es una LIB que no requerira cambio y de tenerlos, se recompila.
Re: Funciones propias en una lib
Posted: Thu Jan 19, 2017 7:53 am
by Antonio Linares
Te falta una B aqui:
$(HDIR)\bin\harbour
debiera ser:
$(HBDIR)\bin\harbour
Re: Funciones propias en una lib
Posted: Thu Jan 19, 2017 11:45 am
by Compuin
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 > comp.log
.\prg\mainwin.prg(1) Error F0029 Can't open #include file 'fivewin.ch'
** 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 12:24 pm
by cnavarro
El path de FW es correcto?
FWDIR=c:\fwh
Re: Funciones propias en una lib
Posted: Thu Jan 19, 2017 12:31 pm
by Compuin
Si es correcto
Re: Funciones propias en una lib
Posted: Thu Jan 19, 2017 1:02 pm
by cnavarro
Y esta linea la tienes incluida?
.path.ch = $(FWDIR)\include;$(HBDIR)\include
Re: Funciones propias en una lib
Posted: Thu Jan 19, 2017 1:08 pm
by Compuin
BCCDIR=c:\bcc7
HBDIR=c:\harbour
FWDIR=c:\fwh
.path.obj = .\obj
.path.prg = .\prg
.path.ch = $(FWDIR)\include;$(HBDIR)\include
.path.c = .\