We help IT Professionals succeed at work.

EXE

smash81
smash81 asked
on
Hello,
 I have written an application in C and would like to distribute it to my users.
 How do i make an exe such that it will run on the users machine without him having to install the C compiler?
Pls help
Cheers
Comment
Watch Question

It depends on the compiler you're using.
If you're using a newer Microsoft compiler, you already have the EXE made.

Some compilers have the option to build and run without making an EXE.  If this is yours, you will need to find the menu option to output to an EXE.

If you're compiling from the command-line make sure you're not using the "compile to object only" option (similar to -c in Microsoft).

What compiler are you using?

Commented:
Maybe he/she wants to know how to make EXE independent of compiler's C/C++ runtime libraries. If so, Link staticaly to C/C++ runtime. This way your executable will be biger in size; but it will run independently. This is the default with most compilers. Tell me which compiler are you using and I will let you know which option to use.

Author

Commented:
Thank you for the responses
I am using Turbo C
I hope that is what you are asking for.If not pls let me know so that i can answer appropriately.
Cheers

Commented:
Just distribute the EXE.  As far as I know, executables created with Turbo C are standalone.

Commented:
hi smash81
if only you are using graphics.h and using initgraph
the computer must have bgi files at appropriate place to initgraph, else it will cause an error. Else there is no need of compiler.
amit.

Commented:
Hi smash81,
    Your Executable can only run on the same Hardware "System" as yours, specially if you are pointing to devices or directories. If you are giving this executable to users that have the same setup as you, It should work with no change at all just run the application. If you wrote this application on Windows and let say one of the users is on a Unix system and unless your application is written in standerd C you would have to recompile the application on the new system.

Hope this will help,

Joudeh.

CERTIFIED EXPERT
Top Expert 2006

Commented:
No comment has been added lately and this question is therefore classified abandoned.

If asker wishes to close the question, then refer to
http://www.experts-exchange.com/help/closing.jsp

Otherwise, I will leave a recommendation in the Cleanup topic area that this question is:
PAQed with A grade to Triskelion

Please leave any comments here within the next seven days. It is assumed that any participant not responding to this request is no longer interested in its final disposition.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Sunny
EE Cleanup Volunteer

Explore More ContentExplore courses, solutions, and other research materials related to this topic.