Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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   208 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