Quantcast
Channel: chooru_code » visual c++
Browsing all 14 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Visual C++: Files and Directories

Visual C++ does not respect (or use) the underlying directory structure of your existing source code files. Some may find this to be a failing, but I personally think this is a feature. It allows you...

View Article



Image may be NSFW.
Clik here to view.

CPPUnit: Compiling with Visual C++ 2010

CPPUnit is a unit testing framework that is a port of the popular JUnit framework. Work on it has stalled and there has been no release since 2008. Work has continued on a fork called CPPUnit2. The...

View Article

Image may be NSFW.
Clik here to view.

Visual C++: C Run-Time Libraries

Every Visual C++ project is linked with a C run-time library. This is called the CRT in Microsoft literature. Depending on the support for multi-threading there are 2 kinds of CRT: Single threaded CRT:...

View Article

Image may be NSFW.
Clik here to view.

Visual C++: CRT Source Code

The source code of the C Run-Time library (CRT) of Visual C++ can be found in the directory: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\crt\src Exploring the code, one sees that most of the...

View Article

Image may be NSFW.
Clik here to view.

Visual C++: Windows and Console Subsystems

Subsystem The Subsystem option can be found in any Visual C++ project here: Project → Properties → Linker → System → Subsystem. The choice of Subsystem decides the execution environment for the...

View Article


Image may be NSFW.
Clik here to view.

Visual C++: Creating a New Configuration

Creating a new configuration for compilation in Visual C++ is easy! For example, say I want to create a new configuration that is same as Release mode, except I want assert() to be compiled. To do...

View Article

Image may be NSFW.
Clik here to view.

CUDA: LNK2005 Linker Errors

The Problem When building a Visual Studio solution which has CUDA source files (*.cu), LNK2005 linker errors of the following kind might be seen: LIBCMT.lib(hooks.obj) : error LNK2005: "void __cdecl...

View Article

Image may be NSFW.
Clik here to view.

CGAL: GMP and MPFR Linker Errors

Problem Compiling any Visual C++ solution that uses CGAL produces either or both of these errors: 1>LINK : fatal error LNK1104: cannot open file 'gmp-vc90-mt.lib' 1>LINK : fatal error LNK1104:...

View Article


Image may be NSFW.
Clik here to view.

Visual C++: Assert in Release Mode

Problem In Visual C++, assertions are disabled in Release mode and enabled in Debug mode of the solution. I find assertions to be cheap and effective means of capturing programmer errors and would like...

View Article


Image may be NSFW.
Clik here to view.

C++: pragma once

With both Visual C++ and GCC supporting pragma once completely, I do not see any reason to still use the include guards. Include guards were always a messy solution and I am glad that their death...

View Article

Image may be NSFW.
Clik here to view.

LNK2038 Linker Error in Visual C++

Problem I got this error at the linking stage of compiling a Visual C++ project: Error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj This project...

View Article

Image may be NSFW.
Clik here to view.

How to build RDKit on Windows

RDKit is a cheminformatics library with a C++ and Python API. You typically need to build it only if you need to use the C++ API on Windows. Here are the steps that worked for me: 1. Install Python and...

View Article

Image may be NSFW.
Clik here to view.

How to use Armadillo on Windows

Armadillo is a C++ template library for linear algebra. It is built upon LAPACK and BLAS. It offers a simple API that is similar to that of Matlab. 1. Download the source code of Armadillo from here....

View Article


Image may be NSFW.
Clik here to view.

How to change working directory in Visual Studio

When developing a C++ program using Visual Studio, you typically compile and run it from the Visual Studio IDE. By default, when you do this, the executable is run with the working directory being the...

View Article
Browsing all 14 articles
Browse latest View live




Latest Images