Repository navigation
Conversation
The DLL linked the CRT dynamically (/MD), so Notepad++ could only load it where the VC++ Redistributable for the same architecture was installed. That's more likely to be missing for 32-bit and ARM64 users, and the ARM64 DLL is built with v145, so it needs version 14.50 or later. Use /MT and /MTd, as the Notepad++ plugin template does. The DLL now imports only Windows system DLLs. Release grows from 102 to 312 KB (x64) and from 94 to 263 KB (x86). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 16, 2026
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #6. The base is
x86-arm64-builds, so this diff shows only the CRT change. GitHub retargets it tomainwhen #6 merges and its branch is deleted.Why
LLMAssistant.dlllinked the C runtime dynamically (/MD). It importedMSVCP140.dll,VCRUNTIME140.dll(andVCRUNTIME140_1.dllon x64) and theapi-ms-win-crt-*DLLs. So Notepad++ could only load the plugin where the VC++ Redistributable for that same architecture was installed. Otherwise Notepad++ reports that the plugin can't be loaded. The redistributable is more likely to be missing for the new 32-bit and ARM64 users. Also, CI builds the ARM64 DLL with v145, so with/MDit would need the redistributable at version 14.50 or later.Change
LLMAssistant.vcxproj:RuntimeLibraryisMultiThreaded(/MT) for Release andMultiThreadedDebug(/MTd) for Debug, on every platform. This is what the Notepad++ plugin template does. The plugin never hands CRT-allocated memory to Notepad++ to free (it returns pointers to static data), so a private CRT is safe.README.md: one line in the build notes saying the DLL needs no Visual C++ Redistributable.Local verification (VS 2026, v145)
/MD)/MT)dumpbin /dependents)Other checks:
build.batandbuild.bat x86passed/MTto cl.exe and built with 0 compiler or linker warnings.Debug|x64andDebug|Win32(/MTd) also build with 0 warnings and import only the same five system DLLs.make-release-zip.ps1 -Platform x64and-Platform x86pass the machine type, version (1.1.0.0) and export checks.LoadLibraryin a process of its own bitness (64-bit pwsh, and 32-bit Windows PowerShell).getNamereturned "LLM Assistant",isUnicodereturned 1, andgetFuncsArrayreported 8 items.🤖 Generated with Claude Code