Microsoft Studio Visual C++ 2013 (MSVC 12.0) is a commercial (free version available), integrated development environment (IDE) product from Microsoft for the C, C++, and C++/CLI programming languages.
Questions tagged [msvc12]
139 questions
1
vote
0 answers
Qt .executable runs but the UI won't show up
I have a project that I'm trying to generate an executable for.
At first I just went into the "build-myproject\release" folder and tried to run the .exe file but it asked for some .dll files, so I went to the proper compiler directory…

Claudio Tejada
- 239
- 1
- 4
- 13
1
vote
0 answers
visual studio 2013 std::bind with vector returns empty function
This code
#include
#include
#include
using std::cout;
using std::endl;
struct S {
std::function< void() > func;
//S( std::function< void() > && f ) : func( f ) {}
};
void foo( const S & s ) {
if (…

borisbn
- 4,988
- 25
- 42
1
vote
0 answers
MSVC 2013 unable to match function definition to declaration. Works in MSVC 2015
Not sure if this is a bug in MSVC 2013 ultimate, but it works fine in 2015 community.
Declaration: https://github.com/dtmoodie/MetaObject/blob/master/include/MetaObject/Signals/TypedSignal.hpp
class IMetaObject;
class Context;
class…

Daniel Moodie
- 357
- 1
- 10
1
vote
3 answers
error MSB6006: "CL.exe" exited with code 1 after adding template function or class
Asking this question preemtively because there is not much to be found about this error code. It is rather trivial to solve, but cost me a lot of time to diagnose because no proper error message is given.
So what happened?
I added templated…

antipattern
- 743
- 1
- 9
- 20
1
vote
1 answer
Why sleep_for calls FreeLibrary?
I'm shocked to trace this simple code:
#include
void foo()
{
for (int i = 0; i < 1000000; ++i) {
std::this_thread::sleep_for(std::chrono::nanoseconds(1));
}
}
int main()
{
std::thread t(foo);
t.join();
}
Guess…

amanjiang
- 1,213
- 14
- 33
1
vote
0 answers
boost: how to specify specific msvcrt.lib while building boost test
I am trying to build boost with specific msvcrt.lib file used for building other project. I didn't find flag or config section, where I can control this lib.
by default boost uses what is installed on machine. is there a way to overwrite this with…

Abhay
- 564
- 6
- 14
1
vote
2 answers
MSVC 12 Show where a library is being required
TL;DR Is there a flag or something that will tell msvc to print out which library/object file requires a given library?
say I get an error message like:
LNK1104 fail to open file: boost_thread-vc120-mt-gd-1_56.lib
I expect this because I haven't…

Peter Mitrano
- 2,132
- 28
- 31
1
vote
1 answer
link boost libs to qt with msvc
I have installed qt-opensource-windows-x86-msvc2013_64_opengl-5.4.0.exe and compiled boost_1_58_0.zip with this command: b2 toolset=msvc --build-type=complete stage. It works fine with Visual Studio, but when I try use it with Qt I get this…

Morteza
- 73
- 1
- 13
1
vote
1 answer
MSVC 12 std::initializer_list bug when copying std::string
I'm trying to create a C++ program with MSVC 12 (Visual Studio 2013, Update 4) which uses a std::initializer_list of structs which have std::string members. I seem to have run into a bug in MSVC. Here's a minimal example which exhibits the…

CmdrMoozy
- 3,870
- 3
- 19
- 31
1
vote
0 answers
libxml2 linker errors in Microsoft Visual Studio 2013
I am porting some c++ code that was compiled with cmake and gcc under Linux to a larger Windows project. We are using Microsoft Visual Studio 2013, and the project is a simple command line tool, built in release mode, x64. I am getting a bunch of…

user3174730
- 9
- 2
1
vote
2 answers
building Qt for Windows with msvc - Qmakespec error
I am trying to statically build Qt using Visual Studio 2013
To do so, I'm following the instructions provided by the official website
1) ActivePerl 5.20 is downloaded, installed and added to the PATH.
2) The archive for…

nmonnier
- 21
- 1
- 5
1
vote
1 answer
Where is my Py_NoneStruct symbol (python, boost.python)?
I'm trying to compile a simple main.cpp which just includes boost/python.hpp.
Like the following:
#include
int main() {
return 0;
}
I'm using MSVC command line tools from my git-bash shell. I know that cl.exe need some…

ccharly
- 368
- 1
- 3
- 8
1
vote
1 answer
Custom Build Rule fails after converting to VS2013
I need to integrate a legacy VS2008 project into my VS2013 solution. This project uses some custom build rules which initially worked after converting the .vcproj to a .vcxproj. However, when doing a fresh checkout of the project including the…

Tim Meyer
- 12,210
- 8
- 64
- 97
1
vote
0 answers
MSVCP120d.dll not found error while using the QT Library
Hey guys I am trying to use QT for my project and I downloaded the 5.2.1 msvc2012_64 version of QT.
However, I am getting an MSVCP120d.dll error while trying to run an exe file. I understand that it is caused by having Visual Studio 2013 libraries…

user1250335
- 85
- 7
1
vote
1 answer
Illegal instruction on AVX with Intel Core i7
I have a Windows x64 C++ program which is compiled by MSVC 12 without AVX support (no /arch:AVX in compile options).
And I have a crash report from one customer with Core i7 4700MQ on Win7. Exception code is c000001d (illegal instruction), and…

Ryhor Spivak
- 253
- 1
- 8