Questions tagged [msvc12]

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.

139 questions
2
votes
1 answer

Breakpoint: Break when c++ exception is thrown - why so slow?

Using Qt Creator, Qt 5.3, VC12 (VS2013) When I set a "Break when c++ exception is thrown" breakpoint in Qt creator, my application becomes extremely slow. Maybe 5-10 slower than running with other breakpoints such as "File name and line number" Why…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
1
vote
0 answers

distutils.errors.DistutilsPlatformError: VC 6.0 is not supported by this module

I tried to install a package "nbtlib" in Windows 10 (mingw64) and got this error: Collecting nbtlib Using cached nbtlib-2.0.4-py3-none-any.whl (28 kB) Collecting numpy Using cached numpy-1.24.2.tar.gz (10.9 MB) Installing build dependencies…
1
vote
1 answer

percent in folder name generated by Jenkins but not supported by visual studio

I would like to use Jenkins multibranch pipeline with Subversion. The job is configured to include branches branches/* Consequently, for each branch (foo), it creates a folder named branches%2Ffoo corresponding to a branch-dedicated-job. So far so…
A. Richard
  • 240
  • 1
  • 6
1
vote
1 answer

Using replace with std::ranges::views

I am trying to learn ranges in C++20 using Microsoft Visual Studio 2019. I created a function to make lowercase in a string and replace all spaces by '_'. template auto cpp20_string_to_lowercase_without_spaces( R&& rng ) { auto view…
Check
  • 130
  • 2
  • 10
1
vote
0 answers

CMake MSVC variable on when using all Intel compilers

In my CMake project, I'm checking for use of MSVC compilers in order to alert users of a particular error message. However, when I use all Intel compilers (Fortran, C, C++), the MSVC CMake variable is still enabled. Is this expected? Inspecting the…
raf
  • 535
  • 4
  • 18
1
vote
1 answer

Is it possible to run another installer while installing something in Windows?

I have an .msi installer developed using wix that installs some dlls in a directory on the file system. Some of these dlls have dependency on Visual C++ Redistributable Packages for Visual Studio 2013. I am wondering that is it possible to install…
zfgo
  • 195
  • 11
1
vote
0 answers

Is MSVC's implementation of the STL overriding the warning level to 3?

In a project where my warning level is set to 4, some warnings are not detected when using the STL as implemented by MSVC12. Here's a concrete example: #pragma warning(default:4365) int main( int argc, char* argv[] ) { int fillVal = -1; …
drbradock
  • 11
  • 2
1
vote
0 answers

How to add a static libraries in vs code c++?

I've been looking for many days I try to work with c++ in the vs code, but I can't link libraries. I've tried using the GCC and MSVC compilers, but I'm a beginner and don't know which way to go. Could you help me link a library with the MSVC…
Ruan Lucas
  • 11
  • 2
1
vote
0 answers

How to create a windows static lib... if I use lib.exe and too many arguments?

I encounter a problem using the windows visual studio "lib.exe". (in my case, located under C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin ) Actually, it seems I have too many objects to merge in that lib, which makes a very long command…
Sandburg
  • 757
  • 15
  • 28
1
vote
0 answers

What is the efficient way to make a static local object thread safe in a static function?

I am analyzing a crash dump and found that I have a race condition in the local static object initialization. I am using MSVC++12.0 which doesn't have a thread safe static initialization. Here is the minimal version of the program. #include…
samnaction
  • 1,194
  • 1
  • 17
  • 45
1
vote
0 answers

Access violation when using QT objects in my program

I want to integrate QT into an existing desktop C++ project. The requirements were that QT should be statically built with MSVC2013 64bit and with /MT flag set for compiler, so I built QT5.5.0 from sources. The integration worked as expected, I…
Ispas Claudiu
  • 1,890
  • 2
  • 28
  • 54
1
vote
0 answers

Portable way to implement static function registry in C

It is possible to implement a static function registry in C for gcc/clang by using the section variable attribute and relying on the ELF linker to define the __start_
and __stop_
symbols pointing to the address of the custom…
filbranden
  • 8,522
  • 2
  • 16
  • 32
1
vote
1 answer

MSVC Unresolved Eternal Symbols in DLL

Can someone help me understand why MSVC 12 2013 reports these symbols are unresolved? Error 239 error LNK2019: unresolved external symbol "public: static double const Wm3::Math::DEG_TO_RAD" (?DEG_TO_RAD@?$Math@N@Wm3@@2NB) referenced in…
Matt
  • 1,928
  • 24
  • 44
1
vote
1 answer

PCL build with issue with boost::throw_exception

How can I get around missing boost::throw_exception while building PCL? I've built PCL on Windows (MSVC 2013) a few times in the past, but I've never see this error. It's been blocking me all today and yesterday: LNK2019: unresolved external symbol…
Matt
  • 1,928
  • 24
  • 44
1
vote
0 answers

what is equivalance for #pragma package(smart_init) in msvc?

In embarcadero (Borland) C++ compiler we have following pragma Directive: #pragma package(smart_init) #pragma package(smart_init, weak) as describe in here. What are the pragma directives defined in msvc(Visual C++ compiler) equivalence for above…
Buddhika Chaturanga
  • 957
  • 2
  • 14
  • 29