Showing posts with label c++. Show all posts
Showing posts with label c++. Show all posts

Saturday, 25 August 2018

Building libpq on MSYS2 MinGW 64 bit for libpqxx

For Windows, although there is a PostgreSQL installer provided, the libpq in the installation directory cannot be used to link libpqxx on MSYS2. This post shows how to build libpq from source on MSYS2.

Thursday, 5 April 2018

Saturday, 3 March 2018

Sunday, 4 January 2015

Error C1189 when using OSIsoft PI API with C++ standard libraries

It can be frustrating to get libraries to work together, especially old ones. Yes, I know the PI API will be deprecated sometime in the future, but it is so much easier to set up and use. Unfortunately, when you try to include C++ standard libraries such as <string>, errors spew out...

Sunday, 14 December 2014

Using libmicrohttpd with MSVC

Windows is not POSIX compliant. Attempting to include files like sys/select.h will not work because they don't exist. Here's a step-by-step guide to get the libmicrohttpd demo working on MSVC.

Sunday, 5 October 2014

fgets and fputs

In this article we explore the use of fgets and fputs to deal with piped input. Admittedly, it is a rather roundabout way, but it can be useful in specific situations.

Sunday, 1 June 2014

The missing ampersand

The ampersand operator (&) is used to show that a parameter should be passed by reference. What difference does it make?

Sunday, 6 April 2014