How to rebuild FWH libs

Post Reply
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

How to rebuild FWH libs

Post 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,,
regards, saludos

Antonio Linares
www.fivetechsoft.com
Roberto Parisi
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Re: How to rebuild FWH libs

Post by Roberto Parisi »

What about rebuild against msvc?

How to replace obj files with lib.exe?

Regards,
Roberto Parisi
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: How to rebuild FWH libs

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
Roberto Parisi
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Re: How to rebuild FWH libs

Post 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
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: How to rebuild FWH libs

Post by cnavarro »

Maybe you need to make a backup and delete the lib so when creating it does not exist
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: How to rebuild FWH libs

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
Roberto Parisi
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Re: How to rebuild FWH libs

Post by Roberto Parisi »

Ok. I'll try.

Regards,
Roberto Parisi
Roberto Parisi
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Re: How to rebuild FWH libs

Post 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
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: How to rebuild FWH libs

Post by cnavarro »

You have to look at the file fwh \ source \ winapi \ createso.c
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
Roberto Parisi
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Re: How to rebuild FWH libs

Post by Roberto Parisi »

Many thx,
I forgotten _FLAT_ define.

Now it works.

Regards,
Roberto Parisi
devtuxtla
Posts: 392
Joined: Tue Jul 29, 2008 1:55 pm

Re: How to rebuild FWH libs

Post 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
Visite Chiapas, el paraiso de México.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: How to rebuild FWH libs

Post by Antonio Linares »

Gustavo,

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

Antonio Linares
www.fivetechsoft.com
Post Reply