Questions tagged [msvc14]
24 questions
8
votes
1 answer
std::vector::insert() stopped working when migrating from MSVC 2013 (C++11) to MSVC 2019 (C++17)
I currently am migrating a large code base from
Visual Studio 2013 (v120)
C++11
to
Visual Studio 2019 (v142)
C++17
and now, my tests fail in strange places - I get index out of bounds crashes and other strange changes in behavior.
Upon digging I…

PhilLab
- 4,777
- 1
- 25
- 77
8
votes
1 answer
Is the 16-bit math in this program invoking undefined behavior?
The other day I upgraded my Windows build environment from MSVC2013 to MSVC2017, and lo and behold, a function in my program that had been working fine for years (and still works fine under g++/clang) suddenly started giving incorrect results when…

Jeremy Friesner
- 70,199
- 15
- 131
- 234
4
votes
1 answer
C++ "undefine" module keyword in include
I'd like to use C++20 modules in visual studio, but one of my projects uses Magick++ which defines a struct with a member char* named "module" in "magick++.h":
typedef struct _MagickInfo
{
char
*name,
*description,
*version,
…

Daniël van den Berg
- 2,197
- 1
- 20
- 45
3
votes
0 answers
since boost 1.74: compile errors building code using boost-asio with intel-18.0-vc14
I built boost 1.74 with Intel c++ 2018 (update 2) with VS 2015 (the intel-18.0-vc14 toolset) in release x64
when I try to build code that uses ASIO with the intel c++ compiler with VS2015 integration, I get loads of compile errors.
when I try to…

dyoll
- 187
- 2
- 6
2
votes
1 answer
When is the scope of a function called from a C++ function template determined? (MSVC)
Given the following test code:
void Serialize(std::ostream& os, int& i)
{
os << "int: " << i << '\n';
}
template
void Write(std::ostream& os, T* pData)
{
::Serialize(os, *pData);
}
struct SData
{
int i = 42;
};
void…

cue
- 41
- 4
2
votes
0 answers
Increase compiler stack size of MSVC
I am testing a code that is using a large number of variables and some __forceinline functions. As a result, I am getting the following compilation error:
Fatal error C1063: compiler limit: compiler stack overflow
This makes perfect sense as the…

Arif
- 61
- 4
2
votes
0 answers
Porting issue in visual studio 2015 - _flag is not a member of _iobuf
I am porting existing VC12 compiler compatible code to VC14 (visual studio 2015) and I am facing code break problem.
Sample program to reproduce issue:
#include "iostream"
using namespace std;
#define mybuffer(param) ((param)->_flag &…

Jatin
- 1,857
- 4
- 24
- 37
1
vote
2 answers
Some problem about inline function in VS2019
I'm doing some (maybe exotic) experiments about C++ inline functions in VS2019:
source1:
#include "pch.h"
inline int inline_func(int i) {
return i;
}
void testinline1()
{
inline_func(0);
}
source2:
#include "pch.h"
inline int…

jw_
- 1,663
- 18
- 32
1
vote
0 answers
How to set up MSVC++ 14.0 build tools for python copperhead?
I'd like to use python copperhead for CUDA C++ prototyping, which requires MSVC++14, and I want to make copperhead work first without CUDA. I've installed Microsoft Build Tools 2015 and tried to generate the hello world example from…

Gugyin Adrián
- 13
- 1
- 8
0
votes
1 answer
What does "vc14_vc15" mean in opencv-4.6.0-vc14_vc15.exe?
I'm trying to download a windows pre-built binary of Opencv, and from https://sourceforge.net/projects/opencvlibrary/files/4.6.0/ I see a file named opencv-4.6.0-vc14_vc15.exe.
What does vc14_vc15 mean here? vc14 I guess it's VS2015, then vc15 is…

Felix F Xu
- 125
- 7
0
votes
0 answers
Visual Studio 2022 Solution Upgraded from Visual Studio 2013 Fails to Set Telemetry Environment Variables
I recently upgraded a Visual Studio 2013 Solution with C++ Libraries in it to Visual Studio 2022. Everything went great except there were three major environment variables not set.
The error:
Error MSB4044 The "SetEnv" task was not given a value…

Steve
- 3,957
- 2
- 26
- 50
0
votes
0 answers
Microsoft Visual C++ 14.0 or greater is required for python 3.9?
I got this error for PyAudio;
I installed vscode,visualstudio;
still it gives the error
0
votes
0 answers
How do I prevent the MSVC compiler from replacing const with immediate value
I am trying to make the following contrived example work. In the code below, I declare a const global variable and attempt to modify it by first using VirtualProtect to make the address writable.
#include
#include "windows.h"
int const…

user1720897
- 1,216
- 3
- 12
- 27
0
votes
1 answer
Same class, 2 programs, different OpenMP speedups; MSVC2017
I have a C++ class, several of whose functions have OpenMP parallel for loops. I'm building it into two apps with MSVC2017, and find that one of those functions runs differently in the 2 apps. The function has two separate parallel for loops. In…

Thomas Sharpless
- 949
- 1
- 8
- 14
0
votes
1 answer
Buildbot installation requires msvc14
I've been trying the BuildBot First Run tutorial. It starts by creating a master and looks quite simple and straightforward, but I've encountered problems with the step pip install 'buildbot[bundle]'.
I get this error message (this is the end of the…

ecstrema
- 543
- 1
- 5
- 20