Visual C++ 2015 error
Moderators: hgm, Dann Corbit, Harvey Williamson
-
Robert Pope
- Posts: 558
- Joined: Sat Mar 25, 2006 8:27 pm
Re: Visual C++ 2015 error
Sorry, I've been busy for a couple days and missed your reply. I just figured out the same thing.
-
pijl
- Posts: 114
- Joined: Mon Sep 17, 2012 8:59 pm
Re: Visual C++ 2015 error
There are some more issues with VS2015. I discovered that when it vectorizes loops with unsigned __int64 inside, it masks them to 32 bits. Took me a while to find that ...
In the end turning off optimization of that part (it was bitboard init code so that doesn't matter much anyway) solved that problem.
In the end turning off optimization of that part (it was bitboard init code so that doesn't matter much anyway) solved that problem.
-
jdart
- Posts: 4361
- Joined: Fri Mar 10, 2006 5:23 am
- Location: http://www.arasanchess.org
Re: Visual C++ 2015 error
I disable console buffering this way (last 2 lines are for C++ iostream):
--Jon
Code: Select all
// Must use unbuffered console
setbuf(stdin,NULL);
setbuf(stdout, NULL);
std::cout.rdbuf()->pubsetbuf(NULL, 0);
std::cin.rdbuf()->pubsetbuf(NULL, 0);
-
mar
- Posts: 2552
- Joined: Fri Nov 26, 2010 2:00 pm
- Location: Czech Republic
- Full name: Martin Sedlak
Re: Visual C++ 2015 error
I can confirm thisRobert Pope wrote:If I comment out the setvbuf(), it works as expected, but then I am buffering input.
Microsoft not only managed to break the compiler (see what Richard posted), they also managed to screw up CRT.
I'd recommend them to smoke less crack...
-
Joost Buijs
- Posts: 1562
- Joined: Thu Jul 16, 2009 10:47 am
- Location: Almere, The Netherlands
Re: Visual C++ 2015 error
I guess we have to wait for a service pack, it is a waste of time to work around the cracks.mar wrote:I can confirm thisRobert Pope wrote:If I comment out the setvbuf(), it works as expected, but then I am buffering input.
Microsoft not only managed to break the compiler (see what Richard posted), they also managed to screw up CRT.
I'd recommend them to smoke less crack...
Right now I'm using VS2013 update 5, which is more or less stable.
I like to develop under MSVC because it compiles very fast compared to Intel.
-
Robert Pope
- Posts: 558
- Joined: Sat Mar 25, 2006 8:27 pm
Re: Visual C++ 2015 error
So, do we need to report this somewhere? I gave up and went back to VS 2013. I have little enough time to spend on my engine as it is.mar wrote:I can confirm thisRobert Pope wrote:If I comment out the setvbuf(), it works as expected, but then I am buffering input.
Microsoft not only managed to break the compiler (see what Richard posted), they also managed to screw up CRT.
I'd recommend them to smoke less crack...