Page 1 of 1

How to rebuild FWH libs

Posted: Sun Oct 09, 2011 10:22 pm
by Antonio Linares
You can run this batch file from c:\fwh\source\classes and from c:\fwh\source\function:

rebuild.bat

Code: Select all

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: Select all

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,,

Re: How to rebuild FWH libs

Posted: Thu Nov 07, 2013 7:48 am
by Roberto Parisi
What about rebuild against msvc?

How to replace obj files with lib.exe?

Regards,
Roberto Parisi

Re: How to rebuild FWH libs

Posted: Thu Nov 07, 2013 9:27 am
by Antonio Linares
Roberto,

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

Code: Select all

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

Re: How to rebuild FWH libs

Posted: Thu Nov 07, 2013 11:58 am
by Roberto Parisi
Thx,
but lib.exe for each obj give me the error _HB_FUN__*** already defined in fiveh.lib (***) ; second definition ignored

Regards,
Roberto Parisi

Re: How to rebuild FWH libs

Posted: Thu Nov 07, 2013 2:13 pm
by cnavarro
Maybe you need to make a backup and delete the lib so when creating it does not exist

Re: How to rebuild FWH libs

Posted: Thu Nov 07, 2013 3:00 pm
by Antonio Linares
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

Re: How to rebuild FWH libs

Posted: Thu Nov 07, 2013 3:07 pm
by Roberto Parisi
Ok. I'll try.

Regards,
Roberto Parisi

Re: How to rebuild FWH libs

Posted: Fri Nov 08, 2013 1:16 pm
by Roberto Parisi
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

Re: How to rebuild FWH libs

Posted: Fri Nov 08, 2013 1:48 pm
by cnavarro
You have to look at the file fwh \ source \ winapi \ createso.c

Re: How to rebuild FWH libs

Posted: Fri Nov 08, 2013 4:35 pm
by Roberto Parisi
Many thx,
I forgotten _FLAT_ define.

Now it works.

Regards,
Roberto Parisi

Re: How to rebuild FWH libs

Posted: Fri Oct 06, 2017 6:55 pm
by devtuxtla
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

Re: How to rebuild FWH libs

Posted: Mon Oct 09, 2017 10:01 am
by Antonio Linares
Gustavo,

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