FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Utilities / Utilidades How to rebuild FWH libs
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
How to rebuild FWH libs
Posted: Sun Oct 09, 2011 10:22 PM
You can run this batch file from c:\fwh\source\classes and from c:\fwh\source\function:

rebuild.bat
Code (fw): Select all Collapse
for %%f in (*.prg) do c:\harbour\bin\harbour %%f /n /ic:\fwh\include;c:\harbour\include
for %%f in (*.c) do c:\bcc582\bin\bcc32 -c -Ic:\bcc582\include;c:\harbour\include %%f
for %%f in (*.obj) do c:\bcc582\bin\tlib fiveh.lib -+ %%f /0 /P32,,


And this one from c:\fwh\source\winapi and c:\fwh\source\function:

rebuildc.bat
Code (fw): Select all Collapse
for %%f in (*.c) do c:\bcc582\bin\bcc32 -c -Ic:\bcc582\include;c:\harbour\include %%f
for %%f in (*.obj) do c:\bcc582\bin\tlib fivehc.lib -+ %%f /0 /P32,,
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 116
Joined: Thu Oct 13, 2005 05:14 PM
Re: How to rebuild FWH libs
Posted: Thu Nov 07, 2013 07:48 AM

What about rebuild against msvc?

How to replace obj files with lib.exe?

Regards,
Roberto Parisi

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How to rebuild FWH libs
Posted: Thu Nov 07, 2013 09:27 AM
Roberto,

if you are using a Windows 64 bits, then you have to replace ProgramFiles with ProgramFiles(x86)

Code (fw): Select all Collapse
call "%ProgramFiles%\Microsoft Visual Studio 11.0\VC\vcvarsall.bat"
for %%f in (*.prg) do c:\harbour\bin\harbour %%f /n /ic:\fwh\include;c:\harbour\include
for %%f in (*.c) do "%VCINSTALLDIR%"bin\cl -c -Ic:\harbour\include %%f
for %%f in (*.obj) do "%VCINSTALLDIR%"bin\lib c:\fwh\lib\fiveh32.lib /OUT:c:\fwh\lib\fiveh32.lib %%f
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 116
Joined: Thu Oct 13, 2005 05:14 PM
Re: How to rebuild FWH libs
Posted: Thu Nov 07, 2013 11:58 AM

Thx,
but lib.exe for each obj give me the error _HB_FUN__ already defined in fiveh.lib () ; second definition ignored

Regards,
Roberto Parisi

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: How to rebuild FWH libs
Posted: Thu Nov 07, 2013 02:13 PM

Maybe you need to make a backup and delete the lib so when creating it does not exist

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: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How to rebuild FWH libs
Posted: Thu Nov 07, 2013 03:00 PM

Roberto,

Yes, Cristobal advise seems ok as if the OBJs have different paths from the ones used when it was originally build, then you may get those warnings

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 116
Joined: Thu Oct 13, 2005 05:14 PM
Re: How to rebuild FWH libs
Posted: Thu Nov 07, 2013 03:07 PM

Ok. I'll try.

Regards,
Roberto Parisi

Posts: 116
Joined: Thu Oct 13, 2005 05:14 PM
Re: How to rebuild FWH libs
Posted: Fri Nov 08, 2013 01:16 PM

Hi Antonio,
I added new compiled objs to fiveh32.lib and fivewhc32.lib (FWH 13.9) and now I get the following errors in linking exe.

fiveh32.lib(xbrowse.obj) : error LNK2001: unresolved external symbol _HB_FUN_SETBRUSHORGEX
fiveh32.lib(window.obj) : error LNK2001: unresolved external symbol _HB_FUN_SETBRUSHORGEX
fiveh32.lib(bitmap.obj) : error LNK2001: unresolved external symbol _HB_FUN_SETBRUSHORGEX
fiveh32.lib(btnbmp.obj) : error LNK2001: unresolved external symbol _HB_FUN_SETBRUSHORGEX
fiveh32.lib(control.obj) : error LNK2001: unresolved external symbol _HB_FUN_SETBRUSHORGEX
...

Thx in advance,
Roberto Parisi

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: How to rebuild FWH libs
Posted: Fri Nov 08, 2013 01:48 PM

You have to look at the file fwh \ source \ winapi \ createso.c

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: 116
Joined: Thu Oct 13, 2005 05:14 PM
Re: How to rebuild FWH libs
Posted: Fri Nov 08, 2013 04:35 PM

Many thx,
I forgotten FLAT define.

Now it works.

Regards,
Roberto Parisi

Posts: 392
Joined: Tue Jul 29, 2008 01:55 PM
Re: How to rebuild FWH libs
Posted: Fri Oct 06, 2017 06:55 PM

Hello Antonio

With the indications of this post, I could not generate the libs of FW1705 with BCC73 ...
Can you tell me how to generate and / or what considerations should I have to generate FW1705 with BCC73 and the latest version of xHarbour for BCC73?

regards

Visite Chiapas, el paraiso de México.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How to rebuild FWH libs
Posted: Mon Oct 09, 2017 10:01 AM

Gustavo,

Please review FWH\samples\buildx.bat to see the flags to use

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion