Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 16-01-2010
Member
 
Join Date: Jul 2006
Posts: 191
How do I convert my C programs to executables?

I am very new to the programming language. Now I am studying the C language. I want to save my files of the C program as an executable. Does anyone know how do I convert my C programs to executable? When I am trying to save the files in C as exe files, it is getting saved. But when I try to run those files it shows an error.! Please help me soon.
__________________
ASUS P5VD1-X
Intel Pentium Dual Core 3.00GHz
Maxtor 160GB
Corsair 1.5GB PC3200 RAM
Nvidia Geforce 6800 GT 256mb
Phillips DVD RW
Magna 500W PSU
XION II Steel Black Gaming Case
Reply With Quote
  #2  
Old 16-01-2010
Member
 
Join Date: Apr 2008
Posts: 2,001
Re: How do I convert my C programs to executables?

You cannot simply save your C programs to executable files. To turn them into an executable file, you will need to run them through a C compiler. Which Compiler are you using.?? If you are looking for good compiler i would suggest you to go for Dev-C++. If you are moving to the C++ programming language in future, this compiler also supports C++ which can be more useful. Hope that you got some points about the error.
Reply With Quote
  #3  
Old 16-01-2010
Member
 
Join Date: Jul 2006
Posts: 191
Re: How do I convert my C programs to executables?

Thanks for replying 'kelfro'. I am using the Boreland C++ compiler. I am just using the "save as" option from the compiler to save as the executable. I get the option of the executable from the drop down list of extensions. But as you suggested I would try the DevC++ compiler. Thanks for the reply once again. Also are you sure that I can convert C programs to executable by using the DevC++ compiler?? Since I am new in programming language, also tell me what's different in DevC++ compiler??
__________________
ASUS P5VD1-X
Intel Pentium Dual Core 3.00GHz
Maxtor 160GB
Corsair 1.5GB PC3200 RAM
Nvidia Geforce 6800 GT 256mb
Phillips DVD RW
Magna 500W PSU
XION II Steel Black Gaming Case
Reply With Quote
  #4  
Old 16-01-2010
Member
 
Join Date: May 2008
Posts: 2,293
Re: How do I convert my C programs to executables?

According to me the best full-featured programming environment and compiler for creating software in C++ is the Dev-C++. It is also useful for the C language. Strictly for the hard-core C++ programmer, Dev-C++ allows you to compose all of your source code without many of the hand-holding features. Also the Dev-C++ environment are all of the standard features necessary for writing, compiling, debugging, and executing programs written in C. So I think that using the Dev-C++ will be better.
Reply With Quote
  #5  
Old 16-01-2010
Member
 
Join Date: Nov 2005
Posts: 1,323
Re: How do I convert my C programs to executables?

Even I think that using the Dev-C++ is always better because of the features of it. Here are some features of the Dev-C++ :
  • Support for multiple languages.
  • Integrated debugging.
  • Debug variable Browser.
  • Support GCC-based compilers.
  • Quickly create Windows, console, static libraries and DLLs.
  • Code Completion.
  • Customizable syntax highlighting editor.
  • Print support.
  • Package manager, for easy installation of add-on libraries.
  • Support of templates for creating your own project types.
  • Edit and compile Resource files.
  • CVS Support.
Reply With Quote
  #6  
Old 16-01-2010
Member
 
Join Date: Oct 2005
Posts: 2,389
Re: How do I convert my C programs to executables?

I would like to suggest you to download the Microsoft's Visual C++ from their official website which is free of cost. Even the Visual C++ can provide a pretty good development atmosphere. For writing applications to target the common language runtime, Visual C++ 2005 includes new syntax. The new syntax is a set of extensions to C++ standardized. Features like New Language Keywords and New Compiler Intrinsics are included in the Visual C++ 2005 Service Pack 1. So you can also go for the Visual C++.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How do I convert my C programs to executables?"
Thread Thread Starter Forum Replies Last Post
How to Convert music and videos to executables files (exe files) Mastermind Tips & Tweaks 1 05-02-2011 01:53 AM
C compiler can't create executables GlassFish Operating Systems 5 13-03-2010 06:02 PM
error: C++ compiler cannot create executables Unix'EM Operating Systems 4 15-09-2009 06:27 PM
Any hardware to convert external tv tuner card to record programs mail2cmin Hardware Peripherals 1 09-09-2009 11:45 AM
Problem with running Executables Suzane Software Development 2 17-04-2009 03:34 PM


All times are GMT +5.5. The time now is 05:26 PM.