{"id":21928697,"url":"https://github.com/muellan/howto_dll","last_synced_at":"2025-10-09T17:32:13.415Z","repository":{"id":34493402,"uuid":"38433534","full_name":"muellan/howto_dll","owner":"muellan","description":"demo: how to make an MSVC-compatible DLL with MinGW","archived":false,"fork":false,"pushed_at":"2015-07-02T14:02:00.000Z","size":128,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-28T22:33:10.401Z","etag":null,"topics":["cpp","dlls","mingw","mingw-w64","msvc","windows"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/muellan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-02T13:11:39.000Z","updated_at":"2023-11-30T21:33:47.000Z","dependencies_parsed_at":"2022-09-03T11:02:08.504Z","dependency_job_id":null,"html_url":"https://github.com/muellan/howto_dll","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muellan%2Fhowto_dll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muellan%2Fhowto_dll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muellan%2Fhowto_dll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muellan%2Fhowto_dll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muellan","download_url":"https://codeload.github.com/muellan/howto_dll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235843600,"owners_count":19054017,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","dlls","mingw","mingw-w64","msvc","windows"],"created_at":"2024-11-28T22:27:37.614Z","updated_at":"2025-10-09T17:32:08.148Z","avatar_url":"https://github.com/muellan.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to build MSVC-compatible DLLs with g++ on Windows\n\nDemo project that shows how to make an MSVC-compatible DLL that exposes some pure C functions with g++ on Windows.\n\n## source files:\n * mtm.h is the interface header that will accompany your DLL\n * stuff.h/ccp is some other example code that goes into the DLL\n * demo.cpp is a small demo program that uses the DLL\n * Makefile \n\n## files when built\n * mtm.dll\n * libmtm.a : import library for your DLL\n * demo.exe : demo that uses your DLL, should execute the DLL function\n\n## deployment\nIf you want to deploy your DLL you should also make sure to provide the MinGW runtime DLLs. For the latest 64-bit MinGW-w64 these should be at least libstdc++6.dll, libwinpthread.dll and libgcc_s_seh.dll.\n\n## Build tested with\n * MinGW-w64 g++ 4.9.2 32bit with dwarf exceptions on Windows 7, 64 bit, Powershell\n * MinGW-w64 g++ 5.1.0 64bit with SEH on Windows 8.1, 64bit, Powershell\n\n## Tested in\n * a Visual C# Express project\n * a Visual C++ Express project\n * an MS Excel 2013 VBA macro\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuellan%2Fhowto_dll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuellan%2Fhowto_dll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuellan%2Fhowto_dll/lists"}