Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6073907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:19:23+00:00 2026-05-23T10:19:23+00:00

What are step by step instructions for compiling C++/Tk program into executable that would

  • 0

What are step by step instructions for compiling C++/Tk program into executable that would run on other users machines not requiring that end users to install any additional software, are there any entirely static link options for TCL tk?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:19:24+00:00Added an answer on May 23, 2026 at 10:19 am

    Tcl and Tk work just fine when built statically; this is a supported (but not default) configuration. Just get the source releases and configure them with --disable-shared to ensure that they build the right type of library for you.

    Colin’s answer links to most of what you need to know about coding to use Tcl and Tk from inside your application, except you also need to call Tcl_FindExecutable before you call any of those other programs (I’m assuming you’re not calling Tcl_Main or Tk_Main, which would do that for you but leave you bound to working like tclsh and wish respectively). That’s a necessary call to ensure that the Tcl library is internally configured correctly, as it handles initializing the encoding system and other low-level details like that.

    If you can structure your program like it works with tclsh or wish and just loading your C++ code as an extension package, I would urge you to build your code stubs-enabled and then package it all as a starkit/starpack. In particular, a starpack is a single-file executable which is effectively a self-contained binary distribution of Tcl and Tk plus your application code in a compressed archive format. It’s really rather nice to distribute apps this way as it avoids putting code where users can inadvertently break it, but it’s not suitable for everything. (There are related solutions that can include encrypting your code too, but they’re commercial-only.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to find step-by-step instructions to run Ruby on Rails on MAMP server
Is there anywhere that there are step by step instructions on how to install
I have a build step that builds my projects and packs it into a
I have a three-step process that is entirely reliant upon JavaScript and Ajax to
Just looking for the first step basic solution here that keeps the honest people
I have the problem that an specific step in Ant can only be executed
I would like to be able to step through an application deployed to a
I am new to development. I followed step by step instructions from http://code.google.com/apis/maps/articles/flashmapinwpf.html to
What are the step-by-step instructions to register an iPhone application in the App Store
Can anyone tell me (or send a link) step-by-step instructions of creating a vector

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.