The right MS C compiler for FWH 64

The right MS C compiler for FWH 64

Postby Antonio Linares » Wed Jul 31, 2013 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42092
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: The right MS C compiler for FWH 64

Postby Antonio Linares » Wed Jul 31, 2013 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42092
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: The right MS C compiler for FWH 64

Postby TimStone » Wed Jul 31, 2013 9: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
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: The right MS C compiler for FWH 64

Postby elvira » Thu Aug 01, 2013 9: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?.
elvira
 
Posts: 516
Joined: Fri Jun 29, 2012 12:49 pm

Re: The right MS C compiler for FWH 64

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42092
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: The right MS C compiler for FWH 64

Postby lucasdebeltran » Thu Aug 01, 2013 4: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.
User avatar
lucasdebeltran
 
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am

Re: The right MS C compiler for FWH 64

Postby Antonio Linares » Thu Aug 01, 2013 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42092
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 106 guests