FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour moving to MSVC 32 bits
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Re: moving to MSVC 32 bits
Posted: Wed Feb 27, 2013 08:02 AM
Antonio Linares wrote:Rimantas,

Microsoft delivers updates for Windows constantly, does that mean that Windows is buggy ? Not in my opinion, simply that a product can be enhanced and improved. The problem is not that there are bugs, the problem is that they may not get solved :-)

We publish new builds every month since years, I think that shows a great commitment to deliver updates that enhance FWH constantly and a very fast response to solve bugs :-)


Antonio, excuse for me if I unsightly joked ... :-) . It's all right , your efforts are very valuables and FiveWin very fine . I love it .. :-)
Rimantas U.
Posts: 1303
Joined: Tue Jul 21, 2009 08:12 AM
Re: moving to MSVC 32 bits
Posted: Sat Mar 02, 2013 06:05 PM
Antonio,

With FW 13.02 and MSVC 2010 I get those warnings at link.

Please, how can be avoided?.

Code (fw): Select all Collapse
fivehc32.lib(DRIVES.obj) : warning LNK4006: _HB_FUN_GETCURDIR ya se defini贸 en amedida_fivewinmsvc.lib(varios.obj); segunda definici贸n omitida
fiveh32.lib(HARBOUR.obj) : warning LNK4006: _HB_FUN_LOADLIB32 ya se defini贸 en fivehc32.lib(CALDLL32.obj); segunda definici贸n omitida
fiveh32.lib(HARBOUR.obj) : warning LNK4006: _HB_FUN_FREELIB32 ya se defini贸 en fivehc32.lib(CALDLL32.obj); segunda definici贸n omitida
fiveh32.lib(WININET.obj) : warning LNK4006: _HB_FUN_INTERNETOPEN ya se defini贸 en ftp.obj; segunda definici贸n omitida
fiveh32.lib(WININET.obj) : warning LNK4006: _HB_FUN_INTERNETCONNECT ya se defini贸 en ftp.obj; segunda definici贸n omitida
fiveh32.lib(WININET.obj) : warning LNK4006: _HB_FUN_INTERNETCLOSEHANDLE ya se defini贸 en ftp.obj; segunda definici贸n omitida
fiveh32.lib(WININET.obj) : warning LNK4006: _HB_FUN_FTPOPENFILE ya se defini贸 en ftp.obj; segunda definici贸n omitida
fiveh32.lib(WININET.obj) : warning LNK4006: _HB_FUN_INTERNETWRITEFILE ya se defini贸 en ftp.obj; segunda definici贸n omitida
fiveh32.lib(WININET.obj) : warning LNK4006: _HB_FUN_INTERNETREADFILE ya se defini贸 en ftp.obj; segunda definici贸n omitida
hbrtl.lib(dirdrive.obj) : warning LNK4006: _HB_FUN_DISKCHANGE ya se defini贸 en fivehc32.lib(DISK.obj); segunda definici贸n omitida
hbct.lib(disk.obj) : warning LNK4006: _HB_FUN_DRIVETYPE ya se defini贸 en fivehc32.lib(C5CNEW.obj); segunda definici贸n omitida
hbct.lib(files.obj) : warning LNK4006: _HB_FUN_DELETEFILE ya se defini贸 en fivehc32.lib(C5CNEW.obj); segunda definici贸n omitida
c5taskmsvc.lib(vmenu.obj) : warning LNK4006: _HB_FUN_DEGRADASO ya se defini贸 en fivehc32.lib(C5CNEW.obj); segunda definici贸n omitida
   Creando biblioteca gestionmsvc.lib y objeto gestionmsvc.exp
gestionmsvc.exe : warning LNK4088: la imagen se est谩 generando debido a la opci贸n /FORCE; quiz谩 la imagen no se pueda ejecutar



Also, please when you have time build new Harbour build for MSVC 2010. I tried myself but some libs, such as hbwin.lib, where not created. I don麓t know why.

Thank you very much.
Muchas gracias. Many thanks.



Un saludo, Best regards,



Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producci贸n]



Implementando MSVC 2010, FWH64 y ADO.



Abandonando uso xHarbour y SQLRDD.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: moving to MSVC 32 bits
Posted: Sun Mar 03, 2013 07:59 AM

Lucas,

On each warning, you get a description that explains what is going on:

fivehc32.lib(DRIVES.obj) : warning LNK4006: _HB_FUN_GETCURDIR ya se defini贸 en amedida_fivewinmsvc.lib(varios.obj); segunda definici贸n omitida

function GetCurDir() is duplicated in both drives.c and in varios.c (or OBJ). You can not have duplicates. Don't use the /FORCE clause, instead remove each duplicated function.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1303
Joined: Tue Jul 21, 2009 08:12 AM
Re: moving to MSVC 32 bits
Posted: Sun Mar 03, 2013 09:41 AM

Antonio,

Thank you very much. Appart from that sample, the rest are in Fivewin麓s libs.

For example:

fiveh32.lib(HARBOUR.obj) : warning LNK4006: _HB_FUN_LOADLIB32 ya se defini贸 en fivehc32.lib(CALDLL32.obj); segunda definici贸n omitida
fiveh32.lib(HARBOUR.obj) : warning LNK4006: _HB_FUN_FREELIB32 ya se defini贸 en fivehc32.lib(CALDLL32.obj); segunda definici贸n omitida

Please, could you fix it?.

Also, having a C function like HB_FUNC( INTERNETOPEN2 ), how can I declare such function as static?.

Thank you very much.

Muchas gracias. Many thanks.



Un saludo, Best regards,



Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producci贸n]



Implementando MSVC 2010, FWH64 y ADO.



Abandonando uso xHarbour y SQLRDD.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: moving to MSVC 32 bits
Posted: Sun Mar 03, 2013 11:22 AM

Lucas,

These functions are duplicated in ftp.prg or ftp.c. There is no ftp.* in FWH neither in Harbour, unless I miss something:

fiveh32.lib(WININET.obj) : warning LNK4006: _HB_FUN_INTERNETOPEN ya se defini贸 en ftp.obj; segunda definici贸n omitida
fiveh32.lib(WININET.obj) : warning LNK4006: _HB_FUN_INTERNETCONNECT ya se defini贸 en ftp.obj; segunda definici贸n omitida
fiveh32.lib(WININET.obj) : warning LNK4006: _HB_FUN_INTERNETCLOSEHANDLE ya se defini贸 en ftp.obj; segunda definici贸n omitida
fiveh32.lib(WININET.obj) : warning LNK4006: _HB_FUN_FTPOPENFILE ya se defini贸 en ftp.obj; segunda definici贸n omitida
fiveh32.lib(WININET.obj) : warning LNK4006: _HB_FUN_INTERNETWRITEFILE ya se defini贸 en ftp.obj; segunda definici贸n omitida
fiveh32.lib(WININET.obj) : warning LNK4006: _HB_FUN_INTERNETREADFILE ya se defini贸 en ftp.obj; segunda definici贸n omitida

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: moving to MSVC 32 bits
Posted: Sun Mar 03, 2013 11:28 AM

Lucas,

Removed function DiskChange() from FWH. We use now Harbour's DiskChange() :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1303
Joined: Tue Jul 21, 2009 08:12 AM
Re: moving to MSVC 32 bits
Posted: Sun Mar 03, 2013 12:49 PM
Antonio,

Thank you.

FTP.c is a patch for previous FWH, but now it is not needed.

There are still pending:

Code (fw): Select all Collapse
fiveh32.lib(HARBOUR.obj) : warning LNK4006: _HB_FUN_LOADLIB32 ya se defini贸 en fivehc32.lib(CALDLL32.obj); segunda definici贸n omitida

fiveh32.lib(HARBOUR.obj) : warning LNK4006: _HB_FUN_FREELIB32 ya se defini贸 en fivehc32.lib(CALDLL32.obj); segunda definici贸n omitida

hbrtl.lib(dirdrive.obj) : warning LNK4006: _HB_FUN_DISKCHANGE ya se defini贸 en fivehc32.lib(DISK.obj); segunda definici贸n omitida

hbct.lib(disk.obj) : warning LNK4006: _HB_FUN_DRIVETYPE ya se defini贸 en fivehc32.lib(C5CNEW.obj); segunda definici贸n omitida

hbct.lib(files.obj) : warning LNK4006: _HB_FUN_DELETEFILE ya se defini贸 en fivehc32.lib(C5CNEW.obj); segunda definici贸n omitida



Antonio, how can I declare a static C function, for, for example, HB_FUNC( DELETEFILE )?.


Also, for your information RESALLFREE() function is not available for MSVC?.


Thank you very much for your attention and quick reply as always;).
Muchas gracias. Many thanks.



Un saludo, Best regards,



Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producci贸n]



Implementando MSVC 2010, FWH64 y ADO.



Abandonando uso xHarbour y SQLRDD.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: moving to MSVC 32 bits
Posted: Sun Mar 03, 2013 03:07 PM

Lucas,

static HB_FUNC( DELETEFILE )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 368
Joined: Sun May 31, 2009 06:25 PM
Re: moving to MSVC 32 bits
Posted: Sun Mar 03, 2013 06:19 PM

Antonio,

When I remove /FORCE I can麓t link due to error:

FIVEHC32.lib(C5CNEW.obj) : error LNK2005: _HB_FUN_DRIVETYPE already defined in HBCT.lib(disk.obj)

Regards,



Andr茅 Dutheil

FWH 13.04 + HB 3.2 + MSVS 10
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: moving to MSVC 32 bits
Posted: Sun Mar 03, 2013 08:13 PM

Andr茅,

You can keep using /FORCE by now. but in next FWH build, we will remove function DriveType() from FWH and use the one from Harbour's hbct.lib :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 368
Joined: Sun May 31, 2009 06:25 PM
Re: moving to MSVC 32 bits
Posted: Mon Mar 04, 2013 12:12 AM

OK thanks.

Regards,



Andr茅 Dutheil

FWH 13.04 + HB 3.2 + MSVS 10
Posts: 1303
Joined: Tue Jul 21, 2009 08:12 AM
Re: moving to MSVC 32 bits
Posted: Mon Mar 04, 2013 02:26 PM
Antonio,

Just for revision. Those are duplicate warnings:
fiveh32.lib(HARBOUR.obj) : warning LNK4006: _HB_FUN_LOADLIB32 ya se defini贸 en fivehc32.lib(CALDLL32.obj); segunda definici贸n omitida

fiveh32.lib(HARBOUR.obj) : warning LNK4006: _HB_FUN_FREELIB32 ya se defini贸 en fivehc32.lib(CALDLL32.obj); segunda definici贸n omitida

hbrtl.lib(dirdrive.obj) : warning LNK4006: _HB_FUN_DISKCHANGE ya se defini贸 en fivehc32.lib(DISK.obj); segunda definici贸n omitida

hbct.lib(disk.obj) : warning LNK4006: _HB_FUN_DRIVETYPE ya se defini贸 en fivehc32.lib(C5CNEW.obj); segunda definici贸n omitida

hbct.lib(files.obj) : warning LNK4006: _HB_FUN_DELETEFILE ya se defini贸 en fivehc32.lib(C5CNEW.obj); segunda definici贸n omitida



Thank you for your assistance with MSVC 2010. It seems to be working very good. Also, I think there is an increase on speed. Do you think is it possible?.


Also, why ResAllFree() function is not available under MSVC libs?.

Thank you very much.
Muchas gracias. Many thanks.



Un saludo, Best regards,



Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producci贸n]



Implementando MSVC 2010, FWH64 y ADO.



Abandonando uso xHarbour y SQLRDD.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: moving to MSVC 32 bits
Posted: Mon Mar 04, 2013 05:25 PM
Lucas,

I think there is an increase on speed. Do you think is it possible?


No :-)

C compilers are just translators to highly optimized assembler code, and the resulting assembler is quite similar for all of them. And nothing can't run faster than assembler :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 368
Joined: Sun May 31, 2009 06:25 PM
Re: moving to MSVC 32 bits
Posted: Tue Mar 19, 2013 04:11 PM

Antonio,

I got another one to remove from FWH:

FIVEHC32.lib(STRTOKEN.obj) : warning LNK4006: _HB_FUN_STRTOKEN already defined in HBMISC.lib(stringsx.obj); second definition ignored

Regards,



Andr茅 Dutheil

FWH 13.04 + HB 3.2 + MSVS 10
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: moving to MSVC 32 bits
Posted: Tue Mar 19, 2013 05:40 PM

Andr茅,

We should not remove that one, as StrToken() is a long time used function in FWH, unless they behave exactly the same...

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion