Compile using Turbo C

A place to discuss the implementation and style of computer programs.

Moderators: phlip, Moderators General, Prelates

User avatar
Ddanndt
Posts: 60
Joined: Fri Oct 02, 2009 4:18 pm UTC
Location: Paris

Compile using Turbo C

Postby Ddanndt » Tue Sep 28, 2010 12:23 pm UTC

Hi everybody. I'm new to programming and just wanted to know how to compile a program i've written in notepad using the command prompt in Windows.(i've got Turbo C as compiler btw)
God does not care about our mathematical difficulties — He integrates empirically.
—Albert Einstein

User avatar
Jplus
Posts: 1721
Joined: Wed Apr 21, 2010 12:29 pm UTC
Location: Netherlands

Re: Compile using Turbo C

Postby Jplus » Tue Sep 28, 2010 2:46 pm UTC

I don't know what version you're using, but you could start here and then browse about. Also, Google is your friend.
"There are only two hard problems in computer science: cache coherence, naming things, and off-by-one errors." (Phil Karlton and Leon Bambrick)

coding and xkcd combined

(Julian/Julian's)

tckthomas
Posts: 131
Joined: Thu Aug 05, 2010 2:17 am UTC

Re: Compile using Turbo C

Postby tckthomas » Tue Sep 28, 2010 3:08 pm UTC

Ddanndt wrote:Hi everybody. I'm new to programming and just wanted to know how to compile a program i've written in notepad using the command prompt in Windows.(i've got Turbo C as compiler btw)


Wait wait wait wait... What?

You should totally be using the super awesome G++.

After you get the undeniably super awesome G++, use the awesome G++ as so.

in CMD.exe

Code: Select all

go to directory
COPY yourSuperAwesomeReadyToBePARSEDSourceCode.txt yourSuperAwesomeReadyToBePARSEDSourceCode.cpp
then,
g++ yourSuperAwesomeReadyToBePARSEDSourceCode.cpp -o yourSuperAwesomeEXE.exe


AII THINK.

User avatar
Jplus
Posts: 1721
Joined: Wed Apr 21, 2010 12:29 pm UTC
Location: Netherlands

Re: Compile using Turbo C

Postby Jplus » Tue Sep 28, 2010 4:34 pm UTC

The easiest way to get g++ for Windows is through Dev-C++ (so you can type that into Google).

If we're recommending other compilers anyway, for Windows you could also consider Microsoft's Visual C++ Express (which is easy to find on Google).
"There are only two hard problems in computer science: cache coherence, naming things, and off-by-one errors." (Phil Karlton and Leon Bambrick)

coding and xkcd combined

(Julian/Julian's)

User avatar
evilspoons
Posts: 98
Joined: Tue Aug 26, 2008 12:44 am UTC
Location: Edmonton, AB, Canada

Re: Compile using Turbo C

Postby evilspoons » Fri Oct 01, 2010 2:52 pm UTC

Visual Studio 2010 products (like the various Express editions) are fairly nice IDEs to work with, especially as a learner. Lots of pop-up help and fairly descriptive errors when something blows up with links to MSDN pages that are (usually) useful.

stinch
Posts: 39
Joined: Sun Feb 24, 2008 12:37 am UTC
Location: Oxford, UK

Re: Compile using Turbo C

Postby stinch » Fri Oct 01, 2010 8:17 pm UTC

Jplus wrote:The easiest way to get g++ for Windows is through Dev-C++ (so you can type that into Google).


Dev-C++ has been dead for a while. The bundled version of GCC is ~6 years old.

Code::Blocks bundles an upto date gcc and is also a nice IDE.

tckthomas
Posts: 131
Joined: Thu Aug 05, 2010 2:17 am UTC

Re: Compile using Turbo C

Postby tckthomas » Sat Oct 02, 2010 11:21 am UTC

stinch wrote:
Jplus wrote:The easiest way to get g++ for Windows is through Dev-C++ (so you can type that into Google).


Dev-C++ has been dead for a while. The bundled version of GCC is ~6 years old.

Code::Blocks bundles an upto date gcc and is also a nice IDE.


I'm not sure about that... The last time I had windows, I tried ALL I COULD to get Code::Blocks working and it NEVER would. I probably screwed up major installing that...

archeleus
Posts: 240
Joined: Wed Sep 29, 2010 1:49 pm UTC
Location: Valenvaryon
Contact:

Re: Compile using Turbo C

Postby archeleus » Sat Oct 02, 2010 12:49 pm UTC

I also recommend using g++. Even though Dev-cpp has been dead for a while, for beginners it will do.
I write a blog rant here.

User avatar
TNorthover
Posts: 191
Joined: Wed May 06, 2009 7:11 am UTC
Location: Cambridge, UK

Re: Compile using Turbo C

Postby TNorthover » Sat Oct 02, 2010 5:12 pm UTC

I'd assume the Eclipse CDT comes with a toolchain. It should probably be mentioned as an option (though I can't give much help, mainly use emacs).


Return to “Coding”

Who is online

Users browsing this forum: No registered users and 8 guests