Thats a linker problem.
Try to change Properties -> Linker -> System -> SubSystem (in Visual Studio).
from Windows (/SUBSYSTEM:WINDOWS) to Console (/SUBSYSTEM:CONSOLE)
More Related Contents:
- Visual Studio support for new C / C++ standards?
- Unresolved external symbol in object files
- Convert CString to const char*
- Visual Studio 2012 __cplusplus and C++ 11
- Automatically stop Visual C++ 2008 build at first compile error?
- Assertion failed (size.width>0 && size.height>0)
- “newly” installed visual studio returns 408 errors on blank program of type ‘cannot open source file “errno.h” ‘
- Visual Studio 2010’s strange “warning LNK4042”
- Errors when linking to protobuf 3 on MS Visual C
- What is the difference between the /Ox and /O2 compiler options?
- trying to use VideoCapture and imshow(), raises Assertion failed (size.width>0 && size.height>0) in cv::imshow
- Fatal error: “No Target Architecture” in Visual Studio
- constant variables not working in header
- VC++ fatal error LNK1168: cannot open filename.exe for writing
- Problems with running EXE file built with Visual Studio on another computer
- How to load a custom binary resource in a VC++ static library as part of a dll?
- Disabling Warnings generated via _CRT_SECURE_NO_DEPRECATE
- How to increase error limit in Visual Studio?
- Why can’t Visual Studio find my DLL? [duplicate]
- How does the Import Library work? Details?
- What are the different calling conventions in C/C++ and what do each mean?
- C++11 features in Visual Studio 2012
- How to enable __int128 on Visual Studio?
- How to create NVIDIA OpenCL project
- rvalue to lvalue conversion Visual Studio
- std::to_string – more than instance of overloaded function matches the argument list
- Get a file name from a path
- Visual Studio 2010 not autolinking static libraries from projects that are dependencies as it should be supposed to
- Using bind1st for a method that takes argument by reference
- Visual Studio debugger error: Unable to start program Specified file cannot be found