Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Executables with c program


  • Please log in to reply

#1
Mohit Daksh

Mohit Daksh

    Member

  • Member
  • PipPipPip
  • 217 posts
How do I convert my C programs to executables? When I save them as exe files and I run the file it shows an error.. I have attached the error as a jpg

Attached Files

  • Attached File  ynt.bmp   27.33KB   309 downloads

  • 0

Advertisements


#2
OpenOutcome

OpenOutcome

    Member

  • Member
  • PipPipPip
  • 640 posts
You cannot just save your C programs to .exe.. You need to run them through a C compiler to turn them into an executable file.

Your profile says you are running Windows XP... A good compiler to use would be Dev-C++ 4.9.9.2. This also supports C++ when you move onto that. This is nice little tutorial on how to use Dev-C++.

Hope this helps -
Jason
  • 0

#3
Mohit Daksh

Mohit Daksh

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 217 posts
I have Boreland C++ compiler and I saved it from its "save as" option... And selected the executable option from the drop down list of extensions..

I'll try the DevC++

Thanks a lot for your help :)
  • 0

#4
mpascal

mpascal

    Math Nerd

  • Retired Staff
  • 3,644 posts
You can also download Microsoft's Visual C++ from their website for free if you want. It provides a pretty good development atmosphere.
  • 0

#5
Mohit Daksh

Mohit Daksh

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 217 posts
Okay I'll do that.. Thank you very much mpascal :)
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP