Skip to content

Chilkat Tech Notes

Chilkat Software Tech Notes

    September 21, 2019

    Go Language Static Linking to remove libstdc++ Requirement

    Question:

    I used compiler from here for windows: http://mingw-w64.org/doku.php
    I built the application I described earlier. Looks like I have to supply
    libstdc++.dll along with the exe. Is it possible to build everything statically ?

    Answer:

    Yes, see here:  https://blog.madewithdrew.com/post/statically-linking-c-to-go/

    Specifically:

    $ go build --ldflags '-extldflags "-static"' file.go

     

     

    admin
    0
    Tags :
    go languageldflagsstatic linking

    Post navigation

    Using Chilkat Python in AWS Lambda
    Generate XAdES-BES with .pem, .cer, or .pfx?

    Blogroll

    • * Release Notes
    • Chilkat Binary Encodings
    • Chilkat Character Encodings
    • Chilkat Home
    • Example Code
    • Generate Chilkat Code from Postman
    • How to Determine FTP Connection Settings
    • How To Register ActiveX DLLs
    • MSVC Runtimes for .NET Assemblies
    • Never Handle Non-Text Binary Data as a String
    • Online XML Signature Validators
    • Reference Documentation
    • SOAP WSDL to Chilkat Code
    • Socket Programming Must-Know Concepts
    • StackOverflow (Chilkat Software)

    Tags

    ActiveX asp async asynchronous C# callbacks Delphi email Encryption error messages events exchange server FTP GMail HTTP IMAP IOS Java Linking MIME oauth2 Office365 pfx PHP pop3 port-forwarding regsvr32 release notes RSA SFTP smartcard SMTP socket SSH SSL TLS tunnel upload vb6 VBScript VC++ x64 xades XML zip

      Copyright ©2025 Chilkat Tech Notes . All rights reserved. Powered by WordPress & Designed by Bizberg Themes