Creating stand alone executable from C++ program


  • I have a working C++ program within Developer Studio 2008 (probably standard, or maybe professional edition), and I would like to create an executable which I can give to somebody else to use, or to use myself, however outside of the Developer Studio (for instance from Matlab, of from command prompt). After generating a Release version, I went to the Release foulder, however haven't found corresponding *.exe file (what I've hoped for).

    How should  I create a stand alone executable to be used on another Windows based machine without Developer Studio ?

    By the way, when I build in my Developer Studio 2008 a Relese version of the Intel Fortran based program, it generates corresponding exe file which somebody elese uses on his machine without any trouble.

    An operational system on my machine is Windows 7.

    Thank you very much for you help.

    Please, have in mind that I am not a computer person; I am just a physisist making programs for research purposes.

    Friday, March 18, 2011 5:51 PM


  • >I went to the Release foulder, however haven't found
    >corresponding *.exe file

    If the program built without any errors, it will have
    created an *.exe file. If there were any build errors
    then an *.exe will not be created. You must have an
    error-free build. Note that you must do a Build, and
    not just a compile.

    Make sure you're looking in the right folder. There
    may be two folders named "release" in the project's

    As to running on other computers without Visual Studio
    installed, that's certainly possible. However you may
    need to install "redistributables" on the other computer.

    >I am just a physisist ...

    Is that anything like a physicist? 8=}}

    - Wayne
    Friday, March 18, 2011 6:04 PM