home.social

#mingw — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #mingw, aggregated by home.social.

  1. Last week I was a little annoyed about missing Microsoft C++ Build Tools #MSVC on a system without admin rights. I needed a compiler for building the #python C++ extension I developed a while ago. Annoyed not because I could not ask someone to install it for me, but annoyed because of the lack of compiler choices in this particular case. I have to use the MSVC instead of let's say #g++ which I could easily install via the #MinGW-w64 #conda package myself.

    I found out that I can tell #setuptools (the backend build system) via #pip config settings to use a different compiler during build:

  2. Update for #RunCPM v6.7 #Windows
    Starterpack 32&64Bit

    - compiled with #MinGW GCC v15.2.0r1 MSVCRT
    - Fix for abstraction_vstudio.h
    (maybe unused by compile with MinGW-Compiler)

    Get it at
    github.com/guidol70/RunCPM_Win

  3. I'm working on building the server natively on using . I have a 32 bit version that works fine and I'm attempting to get a 64 bit version built. I know there are a few other projects like and that also have native builds of the Xorg server. I need XWin for work where I'm limited to using a Windows machine and trying to Xforward information to it. Is anyone else using XWin or interested in using an X server on Windows?

  4. C++ для самых маленьких: Введение в программирование на С++. Часть 1

    C++ — это язык программирования, который был создан как улучшенная версия языка C. Он появился очень давно (в 1985 году), но до сих пор используется повсеместно: в играх, браузерах, операционных системах, автомобилях и даже в искусственном интеллекте! В этой статье мы установим все инструменты для С++!

    habr.com/ru/articles/919330/

    #c++ #gcc #g++ #vscode #mingw #msvc #c #compiler

  5. Руководство по сборке Qt под Windows из исходников с MinGW

    Официальный способ установки готовых бинарников Qt - через онлайн инсталлятор. Однако он требует обязательной регистрации. Да еще и недоступен на территории РФ. Есть и другие способы получить бинарники, или собрать с компилятором от Microsoft , однако не всегда эти способы приемлемы. Сборка из исходников под Windows может оказаться несколько нетривиальна для новичков, потому сделал небольшую инструкцию по сборке Qt 5 и Qt 6. А так же рассмотрена базовая настройка QT Creator.

    habr.com/ru/articles/917252/

    #qt #windows #mingw #mingww64 #qt5 #qt6 #mingw64

  6. What are the mechanisms that control exported symbols when cross-compiling a shared library for Windows using MingW? The latest build of DuckDB (our dependency) fails to export the C-API symbols (but the symbols from other objects are present). The first bad commit doesn't seem to change anything with the build. Where can we look next?

    - Issue: github.com/duckdb/duckdb/issue
    - First bad commit: github.com/duckdb/duckdb/commi
    - Julia discussion: discourse.julialang.org/t/debu

  7. I've been checking out how projects like -w32, and handle links in their utility programs like ln & ls. The comparison is very interesting. I really like Busybox-w32's use of hard links and how they show up with ls -i. They've done a wonderful job getting Busybox working on Windows. I'm investigating if Busybox-w32 can be used in place of msys when building projects with .

  8. Reddit tells me that #MSYS2 is one of the more comprehensive and up-to-date distributions of #MinGW-w64, so i'm gonna use that.

    the funny thing about this one is that it uses regular pacman

    (neofetch came by default - that was not my doing!)

  9. Установка GCC в сборке MinGW

    Установка коллекции компиляторов GCC (GNU Compilers Collection) в Windows и первичная настройка для дальнейшей работы.

    habr.com/ru/articles/794630/

    #C #C++ #D #Ada #mingw #mingw32 #mingww64 #mingw64

  10. @wader I think I can add a bit of explanation here. MSVCRT.DLL (as a "standard C library") was included with windows for a long time, but they quickly ran into issues with it, most likely caused by not having sane mechanisms for versioning. So, what they did was including a C runtime with each release of their compiler (#MSVC) and expect this runtime to be redistributed with software using it. MSVCRT.DLL had its public API/ABI frozen in a state with #C89 and partial(!) #C99 support and was declared "private" to the OS.

    #Mingw (which is also distributed by #MSYS2) nevertheless continued linking to MSVCRT.DLL (and I see why, it's really stupid to have tons of copies of the C runtime ...). So, while the compilers support newer C standards, the standard lib doesn't, and therefore you need quite some hacks and workarounds. And I wouldn't be surprised to find lots of funny misbehavior, that's why I think the issue might indeed be the strftime() from MSVCRT.DLL.
    [...]

  11. Сортировка Конфигов для Make Сборок

    Как известно любая большая программа на Си содержит много программных компонентов и, как следствие, много настроек: констант, макросов, конфигурационных структур и прочего. Всё это можно назвать одним словом: конфиги . Все передают конфиги по-разному. В этом тексте представлен способ передавать конфиги через скрипты сборки.

    habr.com/ru/articles/745244/

    #sort #make #GNU_make #GNU #cygwin #config #mingw #mcu #C #си

  12. Сортировка Конфигов для Make Сборок

    Как известно любая большая программа на Си содержит много программных компонентов и, как следствие, много настроек: констант, макросов, конфигурационных структур и прочего. Всё это можно назвать одним словом: конфиги . Все передают конфиги по-разному. В этом тексте представлен способ передавать конфиги через скрипты сборки.

    habr.com/ru/articles/745244/

    #sort #make #GNU_make #GNU #cygwin #config #mingw #mcu #C #си

  13. Have several libraries that are on my list for updating build scripts. It's kind of like but cross-platform. Would be curious if anyone else builds their libraries and programs from scratch and if anyone would like to compare notes on doing so. The code I work with seldom compiles out of the box without patches. Would be nice to share steps and patches with others similar to what the BLFS project does.

  14. Smacked head-first into a stupid issue with the #libcurl package deployed by #MinGW / #MSYS / #MinGW64 - turns out that if you copy the DLLs out of the MinGW environment (you know, like if you want to actually *deploy* an application that uses them), libcurl suddenly starts freaking out about "SSL CA cert" problems.

    Someone on StackOverflow noticed there's an alternate "mingw-w64-x86_64-curl-winssl" package that doesn't seem to suffer from this issue (which I confirmed). What a damned mess!