• Home

Best Program For C++ On Mac Sublime

 
Best Program For C++ On Mac Sublime 9,6/10 9537 reviews

Sublime Text 3 / Anaconda Python IDE. Sublime Text 3 is one of the most powerful cross platform lightweight code editors till date. With the use of plugins Sublime Text 3 can be used as a full featured IDE - the Sublime Python IDE. You get elegance of sublime text and powers of Python at one place to create your own magic. I was searching for some plugin for debugging a C program in sublime text 3, but all that I got was some discontinued projects for sublime text 2. Jump to content. My subreddits. Edit subscriptions. What are the best plugins for python development these days. 29 5 comments. 10 Beautiful Themes for Sublime Text.

  1. Install Sublime Text Mac
  2. Mac Sublime Text
  3. Best Programs For Mac
  4. Best Program For C++ On Mac Sublime Text
Active1 year, 7 months ago

I am learning C at college now, and teachers told me to use codeblocks as an IDE, but in my opinion codeblocks is a bit ugly and that's why I've chosen Sublime Text 2, the BEST IDE/Text Editor out. You can directly compile C/C++ programs in Sublime Text using the Build option under Tools Menu. (shortcut: Ctrl + B) The build settings file in Sublime Text are the one with.sublime-build extension. You can edit the settings in the file. I tried to run hello world in C++ on sublime text 2 on my mac. Browse other questions tagged c++ macos compiler-errors. Compiling CGAL programs on mac.

I am completely new to programming. I have no idea how to compile & run a simple C program in Sublime Text 2.

(In college I was asked to use Turbo C++ 3.0 but I found that IDE quite ancient.)

I'm using Windows 8 (x64). Here's the error I got when I clicked on build.

Tshepang

Install Sublime Text Mac

6,46418 gold badges74 silver badges115 bronze badges
ShailShail
4169 gold badges14 silver badges33 bronze badges

5 Answers

I realize you mentioned that you're new to programming but this page might still help you to figure out what's going on. Basically, it looks as if you're not specifying the name of the C file to compile in the build command correctly. In the example given at that webpage, the file to be compiled is specified by the $file parameter.

EDIT: Looking again at the output, try saving your file as a *.c file--File->Save As and call it something like Hello.c. The .c extension is the important thing in this case.

EDIT 2: You don't need two ; at the end of line 4. That's unlikely to be your problem (should compile ok) but it's not needed and you shouldn't get into the habit.

Onorio CatenacciOnorio Catenacci
11k12 gold badges68 silver badges110 bronze badges

I recommend you to read build document of Sublime Text 2.

Here is the answer. In Sublime, click Tools -> Build System -> New Build System..

For Windows user, type the following code and save:

For Mac user, type the following code:

For Linux User, copy the following code

Mac Sublime Text

icemelonicemelon
9012 gold badges10 silver badges23 bronze badges

You need to install the C++ compiler,

I use mingw. Once that is installed the c:/mingw and you have added it to the computers environment path it should start compiling.

I use this version of mingw as it includes Boost.http://nuwen.net/mingw.html

HellonearthisHellonearthis
8201 gold badge8 silver badges19 bronze badges

You didn't saved the file.The compiler can't find the file.

Save the file and try again.

OxydronOxydron

This works for me:

It solves the compile and run problem (st2 doesn't allow to run multiple cmd for build)

MacNadav96Nadav96
5011 gold badge8 silver badges19 bronze badges

protected by CommunityApr 3 '16 at 17:05

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged compiler-constructionbuildcompilationsublimetext2 or ask your own question.

Active2 years ago

I recently bought a macbook and was wondering if I can write C and C++ programs on mac without having to install anything more. Say for Java, mac came with a preinstalled version.

Is it the same for C/C++. if yes, can you pls let me know hoe to compile and run a sample program or if not, can you please let me know what stuff to download? Personal finance tools for mac.

Vadim Kotov
5,4457 gold badges36 silver badges49 bronze badges
Shenoy TinnyShenoy Tinny
6306 gold badges17 silver badges33 bronze badges

3 Answers

You need to install the Mac Developer Tools either from your original Mac OS X disk or by downloading the latest version. This package includes the GCC compiler collection (supporting the C and C++ languages, amongst others).

maerics

Best Programs For Mac

maerics
111k32 gold badges211 silver badges256 bronze badges

You need to install the developer tools, which are on your MacBook DVD. Check for custom installations.

sidyllsidyll
44.1k11 gold badges84 silver badges133 bronze badges

You should install Apple Developers Tools.

Basically you should get a (free) developer account and then download Xcode.

Unfortunately, starting with Xcode 4, Apple is charging 5$ for the download. So you could either decide to pay this, or download the previous version (Xcode 3)

Mac sublime text

The main page for Xcode is this. There you will find links to Xcode 4 and Xcode 3 (search within the page)

sergiosergio
66.8k9 gold badges92 silver badges117 bronze badges

Best Program For C++ On Mac Sublime Text

Not the answer you're looking for? Browse other questions tagged c++cmacos or ask your own question.