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
0
votes
1 answer

setting up pkg-config on Windows?

I compiled pkg-config with MSVC and put the finished binary (*.exe) into %PATH%, with the aim to compile/install open source sources with MSVC trough MinGW shell and have the pkg-config install the *.pc files into some location set by…
codekiddy
  • 5,897
  • 9
  • 50
  • 80
0
votes
1 answer

Global Variable Seems To Have Two Different Addresses...?

Take into consideration the following 4 files: [core.h] #pragma once static int MY_MARK = -1; [count.h] #pragma once #include "core.h" #include #define Count(...) CountImpl(&MY_MARK, __VA_ARGS__, &MY_MARK) int CountImpl(void*,…
0
votes
1 answer

Passing Member Function pointer using variadic template arguments is ambiguous

Why is "TArgs" ambiguous in my Example? The compiler should know the only existing function signature virtual CGame::NetCreatePlayer(CNetPeer* _pPeer, int _ObjectID, const CNetMessage& _ObjectData, bool _bAuthority); and deduce correct TArgs in…
ecreif
  • 1,182
  • 1
  • 12
  • 25
0
votes
1 answer

Vector erase iterator outside range

Porting some code from my game engine from Mac to Windows in C++, and I get this runtime error: "Vector erase outside range". It works on Mac! void Entity::runDeferreds() { for (auto it = deferreds.begin(); it != deferreds.end(); /* nothing */ )…
Javawag
  • 1,547
  • 2
  • 16
  • 23
0
votes
2 answers

nmake of (OSRM v4.5.0) fails due to constexpr (C++11) with msvc12

I have an issue with OSRM back-end v4.5.0 build with nmake (see hereafter the error output). The "constexpr" in "Coordinate.h" is not supported by msvc12. The question is, how to force cmake/nmake to use the CTP compiler !? Thanks for your…
haitam
  • 21
  • 4
0
votes
2 answers

Compiling with clang-cl works, but linking fails to find basic libc symbols

For my language (Runa), which compiles to LLVM IR, I'm trying to enable compilation to Windows. I would like to enable linking with MSVC-compiled stuff, so I want to use an MSVC target triple. I installed MSVC Community 2013 and have a cmd.exe…
djc
  • 11,603
  • 5
  • 41
  • 54
0
votes
1 answer

Makefiles for Microsoft Visual C++

I have few queries regarding makefiles for MSVC. I want to create makefiles which will compile my project on Visual C++ compiler. One thing I found in the web named "nmake" which is said to be the makefiles for MSVC(correct me if I am wrong). So, I…
Naseef Chowdhury
  • 2,357
  • 3
  • 28
  • 52
0
votes
0 answers

Errors with Google Protocol Buffers

So I opened the protobuf.sln file in Visual Studio 2012 and clicked on Build Solution (It is under release mode). The errors I get are: 7>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(347,5): error MSB6003: The…
Kelsey
  • 43
  • 2
  • 12
0
votes
1 answer

VS2013 LNK1104 asking for different version of external lib (boost)

I have a VS2013 solution with 4 projects. My startup project (A) is dependent on the other 3 projects (B, C and D). All 3 projects compile perfectly without linking errors. My startup project asks for libboost_filesystem-vc120-mt-gd-1_55.lib but…
0
votes
1 answer

How is there the arithmetic error of a division by zero in this function?

I have written an implementation of Luhn's algorithm. When I test the program with numbers that are invalid by the number of digits I get no program error. Instead, the program executes the printf() call in the main function. However, whenever I…
RonaldMunodawafa
  • 223
  • 3
  • 11
0
votes
1 answer

Qt 5 + MSVC2013 static external lib LNK2001 Windows API

I've got following scenario: Library that uses some Windows functions like RegOpenKeyExA aso (created and compiled with Visual Studio 2013 /MD) Small console application created in VS2013 that uses the library (static linked; /MD). Building the…
0
votes
2 answers

Binding functions with multiple arguments results in C2027

I'm using ChaiScript 5.3.1, and I'm trying to bind functions to my own class, specifically a setPosition function which can take either a Vector3 or 3 floats. The class and it's relevant methods are declared like so: class DLLExport Actor { public: …
Ilija Boshkov
  • 149
  • 2
  • 10
0
votes
1 answer

error compiling openCTM in x64

I'm trying to compile openCTM using VC12 in x64. OpenCTM is downloaded from: openctm-1.0.3-src.zip In order to compile, I run: nmake /f Makefile.msvc To setup the environment I use the following bat file: @rem Setting environment for using…
Deepfreeze
  • 1,755
  • 1
  • 13
  • 18
0
votes
0 answers

Why is this exception not found with breakpoint "when exception thrown"

In my Qt application (VC12, Qt Creator, Qt 5.3) I see an issue when I close my application: As I have no idea why (where caused?, my fault?) I have tried to find the root cause. I have used the breakpoint types (see also here) Break when C++…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
-1
votes
1 answer

Executable size is very big

#include int main() { std::cout << "HI"; } this is the code. after compiling it is 220kb. I used this command : cl /EHsc main.cpp. help me reduce the size
GOOD MAN
  • 5
  • 2
1 2 3
9
10