solving a clang++ compiler problem on linux mint 22.1

During my initial setup of Linux Mint on the Samsung Series 7, I installed the Flutter toolkit ( ). Flutter has additional application requirements, one of which is Clang. So I installed all the additional requirements, then installed Visual Studio Code, then within VSCode I installed Flutter plugin.

Note that I did not install support for Android (Android SDK and Android Studio) nor the Web (via Chrome). All I’m doing is writing Flutter desktop applications.

The Flutter plugin within VSCode automates quite a lot. Using the VSCode Command Palette, you can create an initial Flutter application (Flutter: New Project) that will create skeleton code and build files that compiles and runs the graphical equivalent of hello, world.

Visual Studio Code with the Flutter plugin and an initial Flutter application, running that application in debug mode.

As you can see, the Flutter tools for both the framework and the VSCode plugin provide an effortless on-ramp to developing applications. Creating the start of an application is ridiculously easy, and it’s capable of building and executing from the get-go. One feature this has and I use quite a lot is hot reload. When I make changes to the code, when I save the changes they’re rebuilt and the running application restarted immediately showing those changes. That’s why I use this setup.

Sample Flutter application running on the desktop.

And here is the initial application’s extremely simple desktop window. When this works well, it’s a little like magic.

Unfortunately I ran into a problem where Clang, one of Flutter’s dependencies, could not link a C++ application that is part of the Flutter application. The error message reported by the Flutter tooling was (with much superfluous reporting snipped away):

/usr/bin/ld: cannot find -lstdc++: No such file or directory

This really annoyed me because I have this same setup on my other Linux Mint system, the UM250. With a bit of googling I discovered what was wrong, and how I’d accidentally side-stepped the issue on the UM250. I solved the problem on the Series 7 with sudo apt install libstdc++-12-dev. After that the Flutter tool chain just worked.

Why didn’t I see this issue on the UM250? Because I’d installed gcc/g++ version 12 to support another small project I was working on. On the UM250 I have both versions 11 and 12. Then when I later updated an older installation of Flutter and ran the same simple tests, everything worked there as well. I don’t intend to install gcc/g++ version 12 on the Series 7 as there is no need.

What I don’t understand is how Clang and GCC got out of sync on Linux Mint 22.1. The version of Clang installed is version 14, and requires libstdc++-12. Unfortunately Linux Mint 22.1 installs GCC version 11, which means that if you wanted to build with Clang you’re out of luck unless you know of Clang 14’s dependencies.

python and flutter — writing a very simple markdown demo in flet

This came across my radar entirely by accident. Someone or a group of someones out there has added Python wrappers around Google’s Flutter ( ) and called it flet ( ). If you have Flutter installed already (and I have version 3.3.10, which is current) you can install the Python Flutter module with pip install flet, and then start writing desktop applications with it. I came across this application example here: . I typed it all in myself, and here is my copy of the original author’s listing.

#!/usr/bin/env python

import flet

def main(page: flet.Page):
    page.title = "Markdown Editor"
    page.theme_mode = "dark"

    def update_preview(event):
        markdown.value = text_field.value

    page.appbar = flet.AppBar(
        title = flet.Text("Markdown Editor", color=flet.colors.WHITE),
        center_title = True,
        bgcolor = flet.colors.BLUE,

    text_field = flet.TextField(
        value = "# Hello from Markdown",
        multiline = True,
        expand = True,
        height = page.window_height,
        border_color = flet.colors.TRANSPARENT,
        on_change = update_preview

    markdown = flet.Markdown(
        value = text_field.value,
        selectable = True,
        extension_set = "gitHubWeb",  
        on_tap_link = lambda event: page.launch_url(,

                    flet.Column([markdown], scroll = "hidden",),
                    expand = True,
                    alignment = flet.alignment.top_left,
            expand = True,
    ) = main)

For testing purposes I used this page for the examples on the left of the application: . Although the author called this an editor, it’s missing quite a bit of functionality, such as the ability to open and save your work. Right now it’s just a proof of concept that shows how easy it is to write GUI applications in Python and Flutter, and a way to exercise flet’s built-in Markdown module (see lines 28 to 33). The only problem so far is that Flutter is spitting out a warning message when the Markdown demo application is closed, but other than that it appears to be a decent little demo.

Will I add more functionality? Who can say? Right now I’m working with Qt 6.2 and C++, but the fact this is written with Python is a very strong draw to me. I do think this is very cool.