64bit compile

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

phenri
Posts: 284
Joined: Tue Aug 13, 2013 9:44 am

Re: 64bit compile

Post by phenri »

mar wrote:I think you should try g++ -std=c++11 -msee4.1
But it crashed on me all the time anyway.
If you don't want to bother with Makefile, try creating a single cpp file, where you #include all the other cpp files. That way you can compile using a one-liner directly from terminal.
Thank you for the tip, it works well.

Code: Select all

#include "bitops.cpp"
#include "board.cpp"
#include "command.cpp"
#include "data.cpp"
#include "eval.cpp"
#include "hash.cpp"
#include "move.cpp"
#include "movegen.cpp"
#include "search.cpp"
#include "see.cpp"
#include "timer.cpp"
#include "transposition.cpp"
#include "vajolet.cpp"
Compilation successful

Code: Select all

Compiler: TDM-GCC 4.7.1 64-bit Release
Executing g++.exe...
g++.exe "c:\vajolet2-112b8189b4e0\vajolet-2.23.cpp" -o "c:\vajolet2-112b8189b4e0\vajolet-2.23.exe" -msse4.1 -Ofast -m64 -std=gnu++11  -I"c:\Dev-Cpp 5.4.2 TDM-GCC x64 4.7.1 Portable\MinGW64\x86_64-w64-mingw32\include"  -L"c:\Dev-Cpp 5.4.2 TDM-GCC x64 4.7.1 Portable\MinGW64\x86_64-w64-mingw32\lib" -static-libgcc -m64 -s
Execution terminated
Compilation successful

vajolet-2.23.exe (925.50KB)
http://www.sendspace.com/file/j5stn0
elcabesa
Posts: 855
Joined: Sun May 23, 2010 1:32 pm

Re: 64bit compile

Post by elcabesa »

phenri wrote:
There is no need to have a 64bit OS to compile 64bit.
yes but I need a 64 bit os to do some testng, and I haven't it.