Some sanity for C and C++ development on Windows

The article’s from 2021, but I think it’s still worth discussing.

A hard reality of C and C++ software development on Windows is that there has never been a good, native C or C++ standard library implementation for the platform. A standard library should abstract over the underlying host facilities in order to ease portable software development. On Windows, C and C++ is so poorly hooked up to operating system interfaces that most portable or mostly-portable software — programs which work perfectly elsewhere — are subtly broken on Windows, particularly outside of the English-speaking world. The reasons are almost certainly political, originally motivated by vendor lock-in, than technical, which adds insult to injury. This article is about what’s wrong, how it’s wrong, and some easy techniques to deal with it in portable software.

↫ Chris Wellons

As someone who doesn’t know how to code or program, articles like these are always difficult to properly parse. I understand the primary problem the article covers, but what I’m curious about is how much of this problem is personal – skill issue – and how much of it is a widely held belief by Windows developers and programmers. I know there’s quite a few of you in our audience, so I’d love to hear from you how you feel about this.

The author also authored his on fix, something called libwinsane, which I’m also curious about – is this the only solution, or are there more options out there?

4 Comments

  1. 2024-07-04 1:59 pm
    • 2024-07-04 3:13 pm
    • 2024-07-05 12:20 am
  2. 2024-07-05 3:58 pm

Leave a Reply