64 bit windows compile

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

CRoberson
Posts: 2055
Joined: Mon Mar 13, 2006 2:31 am
Location: North Carolina, USA

64 bit windows compile

Post by CRoberson »

I tried the MingGW compiler that runs on Windows. It worked, but it only gave me a 32 bit build. When I tried the -m64 option the compiler told me "...sorry, that option was not included ...".

I picked it up here: http://www.mingw.org/

I would like a compiler that runs on Windows 7 and can produce a 64 bit executable. I am ok with a compiler that runs on Linux and works as a cross compiler for Windows that can produce 32 bit and 64 bit binaries.

Anybody have answers to this?
User avatar
velmarin
Posts: 1600
Joined: Mon Feb 21, 2011 9:48 am

Re: 64 bit windows compile

Post by velmarin »

I use the version of orwell, downloaded portable editions , creates its own environment.
http://orwelldevcpp.blogspot.com.es/

in different directories for different compilers,

Even I own mine, for example with the version of rubenb
https://github.com/rubenvb

Greetings, Jose.
kbhearn
Posts: 411
Joined: Thu Dec 30, 2010 4:48 am

Re: 64 bit windows compile

Post by kbhearn »

the main mingw project was resistant towards providing 64 bit support for some reason so a couple forks sprung up to cover the need. i believe the following is the current mainstream one.

http://mingw-w64.sourceforge.net/
phenri
Posts: 284
Joined: Tue Aug 13, 2013 9:44 am

Re: 64 bit windows compile

Post by phenri »

I personally use mingw-builds-install.exe that lets you choose different version that I install separately in different folders. Then I took care to isolate the %PATH% for software do not overlap with older versions installed.

Image
User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

Re: 64 bit windows compile

Post by michiguel »

CRoberson wrote:I tried the MingGW compiler that runs on Windows. It worked, but it only gave me a 32 bit build. When I tried the -m64 option the compiler told me "...sorry, that option was not included ...".

I picked it up here: http://www.mingw.org/

I would like a compiler that runs on Windows 7 and can produce a 64 bit executable. I am ok with a compiler that runs on Linux and works as a cross compiler for Windows that can produce 32 bit and 64 bit binaries.

Anybody have answers to this?
I use the cross compiler and it is really good. Not easy to make a faster compile with anything else.

http://mingw-w64.sourceforge.net/downlo ... ted-builds

There you have a link explaining the name convention
http://sourceforge.net/apps/trac/mingw- ... 0structure

and the direct for your case should be
http://sourceforge.net/projects/mingw-w ... 2/download

Miguel
User avatar
velmarin
Posts: 1600
Joined: Mon Feb 21, 2011 9:48 am

Re: 64 bit windows compile

Post by velmarin »

The problem of path I fix it the hard way,

I have a few virtual machines, each for each solution,
some wasted hard disk space, but it works fine ...
Minyt Linux and fedora included.


Image
CRoberson
Posts: 2055
Joined: Mon Mar 13, 2006 2:31 am
Location: North Carolina, USA

Re: 64 bit windows compile

Post by CRoberson »

Thanks guys. Thanks to your links I found more and am trying this one: http://sourceforge.net/projects/tdm-gcc/?source=dlp

It seems to be good and has OpenMP support.

Charles