FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour The right MS C compiler for FWH 64
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
The right MS C compiler for FWH 64
Posted: Wed Jul 31, 2013 04:01 PM
These past days we migrated FWH 64 from VS2010 to VS2012. So far so good.

Also it seems to be backwards compatible with VS2010, just compiling with the flag /GS-

But what we found, and we want to share this reminder with all of you, is that this is the right way to call the CL.EXE for 64 bits:

"$(VCINSTALLDIR)"bin\x86_amd64\cl.exe

Notice the x86_amd64 folder. If you don't use this one, you will end with OBJs not compatible with 64 bits.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: The right MS C compiler for FWH 64
Posted: Wed Jul 31, 2013 04:04 PM

Another good reminder:

We use CL.EXE C mode (/TC flag) to compile all FWH 64 files

This is also used from build64.bat

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: The right MS C compiler for FWH 64
Posted: Wed Jul 31, 2013 09:21 PM

Antonio,

Since I am building with the 32bit version of Visual Studio 2012 ( I assume making 32 bit .exes ), then I assume those specifications do not need to be met. Although all new computers are generally 64 bit ( and run 32 bit software ), most of my clients have a mix of 32 and 64 bit OSs.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 518
Joined: Fri Jun 29, 2012 12:49 PM
Re: The right MS C compiler for FWH 64
Posted: Thu Aug 01, 2013 09:04 AM

Antonio,

I am a bit confused.

With MSVC 2012 for 64 bits, can we also créate 32 bits?.

What compliers should we install?.

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: The right MS C compiler for FWH 64
Posted: Thu Aug 01, 2013 10:04 AM

Tim,

The above only applies for building 64 bits apps using FWH 64 bits ahd Harbour 64 bits.

Elvira,

There is only one VS2012 (express, pro, ..., ultimate -crazy strategy from Microsoft that just confuses users-)

And that VS2012 provides the hability to build 32 and 64 bits apps. So you just have to install VS2012 and you are ready for 32 and 64 bits development :-)

thats why I am enjoying Visual Studio 2012 more and more :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1303
Joined: Tue Jul 21, 2009 08:12 AM
Re: The right MS C compiler for FWH 64
Posted: Thu Aug 01, 2013 04:34 PM

Antonio,

Which versión of 2012?.

For Windows 8, For Desktop?.

And an exe build with MSVC 2012 32 bits, runs in XP mode?.

MSVC 2012 has two cl.exe and link.exe, one for 32 and other 64 or just one?.

Thnank you.

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: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: The right MS C compiler for FWH 64
Posted: Thu Aug 01, 2013 04:52 PM

Lucas,

VS2012 Desktop

Yes, it properly runs on XP with this required minor fix:

viewtopic.php?p=149122#p149122

One for 32 and another for 64. Two different CL.EXE

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion