본문 바로가기

카테고리 없음

Text Edito For Mac When Programming C

Active1 year, 1 month ago
  1. Text Editor For Mac When Programming Codes
  2. Html Text Editor For Mac
  3. Text Edito For Mac When Programming Cablevision
  4. Text Editor For Mac When Programming Crystals
  5. Text Edito For Mac When Programming Craftsman

I am learning C for a class at my university and wish to write the program using the TextWrangler text editor on my Mac (running OSX Lion 10.7). Once I write the .c file, I compile it using gcc. I downloaded the compiler from Apple Developer Tools.

Well you can use any plain text editor such as NotePad, however there are better editors out there with features like syntax highlighting, advanced find and replace, FTP integration, etc. In this article, we will show you some of the best code editors available for Mac and Windows users. Mastering the C programming language - a classic code environment used to build software, apps, and whole operating systems - is a great skill, and Mac OS X makes it easy to learn.

Mastering the C programming language - a classic code environment used to build software, apps, and whole operating systems - is a great skill, and Mac OS X makes it easy to learn. TextMate is another Mac-based text editor. This text editor is mostly preferred for programming in Ruby and Ruby on Rails. It is a well-known Code-Editor for developers who code on a Mac system. The application is excellent for development in modern programming languages. Let’s us look at some of its pros and cons.

It is included in a command line tools download. I locate the file using Terminal, compile it using gcc filename.c where the a.out executable file is created. However, when I type 'a.out' or '/a.out' I get the following messages: '-bash: a.out: command not found' or '-bash: /a.out: No such file or directory'. I have successfully compiled and ran C programs on Linux systems before using this same method. What am I doing wrong on my Mac?

AstroCB
10.6k14 gold badges50 silver badges66 bronze badges
JT9JT9
4714 gold badges9 silver badges21 bronze badges

6 Answers

You need to add a dot to indicate that the executable is in the current directory, as the current directory is not in the path:

MByDMByD
120k23 gold badges235 silver badges253 bronze badges

You're just missing one thing!Instead of '/a.out' it should be './a.out'. Another useful thing is changing the output so that you can have multiple compiled programs. Simply, the only thing you need to put in the terminal is the following (fill in the blanks with what you would like)

good luck!

beckahbeckah
8874 gold badges18 silver badges48 bronze badges

You have to add a dot in front of the slash:

/a.out would try to execute a program in the root folder (/).
a.out will look for your program in all the folders defined in the PATH environment variable.

I have successfully compiled and ran C programs on Linux systems before using this same method. What am I doing wrong on my Mac?

You have to do the same on Linux.

DrummerBDrummerB
36.2k8 gold badges93 silver badges132 bronze badges

make sure to set your permissions executable with chmod +x a.out

MichaelMMichaelM
3051 gold badge3 silver badges14 bronze badges
aFactoriaaFactoria

You'll need a compiler. The easiest way however is to install XCode. This way you'll get access to 'gcc', Thus,

Then run it like this.

Hope this helps!.

Kent AguilarKent Aguilar

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

Active7 years, 10 months ago
votes

What is the best C++ IDE or editor for using on Windows? I use Notepad++, but am missing IntelliSense from Visual Studio.


locked by Bill the LizardMar 31 '12 at 23:41

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. See the help center for guidance on writing a good question.

Read more about locked posts here.

44 Answers

12 next
votes

I've found the latest release of NetBeans, which includes C/C++ support, to be excellent.


votes

Um, that's because Visual Studio is the best IDE. Come back to the darkside.


votes

I personally like Visual Studio combined with a third party add-in such as Visual Assist (http://www.wholetomato.com/). I've tried a few of the others and always ended up back with Visual Studio. Plus, Visual Studio is a widely used product in development industries, so having experience using it can only be a plus.


votes

The Eclipse CDT works well for me. It supports MinGW and Cygwin as targets. It also integrates well with CVS and Subversion.

The latest build, Ganymede, is available here.


votes

There are the free 'Express' versions of Visual Studio. Given that you like Visual Studio and that the 'Express' editions are free, there is no reason to use any other editor.


votes

I vote for Visual Studio, but it seems that C++ is treated like second class citizen (not the compiler and stuff but IDE support) compared to .NET languages like C#, but hopefully MS will do something about it by the next version of Visual Studio (new standard is coming and they promised that 10 should be new 6).


votes

VIsual studio is by far the best IDE but you can also take a look at Code::Blocks


votes

I prefer to use Microsoft Visual C++ express on windows. Though the 2008 ide is fine, the 2005 express has better support for many of the open projects which you might want to participate in. It's a pain to compile Firefox or a half life 2 mod on 2008. Also as a general tip when looking for software, I like to search wikipedia for 'comparison of ' In this case you would search comparison of Integrated Development Environments.

Hope that was helpful.


votes

If you are interested in doing Qt development, then Qt Creator works fine and is free.


votes

I think the debugger in Visual Studio (Express) is the killer thing that prevents me from using another IDE.


votes

Visual Studio + Visual Assist X (http://www.wholetomato.com/)


votes

There are some features in an IDE that are so transformative that you don't know how you lived without them. Integrated help was one. IntelliSense-like functionality was another. VS 6.0's Debug and Continue was absolutely killer. Visual Studio kicked butt for quite a while. Not bad, given the awful NeXTstep rip-off it all started as. (Or is it that memories of NeXTstep has faded until VS seems okay?)

Sure, there are much better EDITORS that VS, but as a complete package for Win32 development nothing seems to come close.

There are free Express editions now, but they seem pretty crippled.

I am quite enjoying Eclipse under Linux (and derivatives of it on Windows used in some FPGA vendor toolchains). I -really- don't like the lack of integrated MSDN-style help, though.

I think it's basically down to those two choices.


votes

Emacs. Xemacs works fine under Windows. For using it as an IDE, I recommend running it under Cygwin.


votes

The Zeus editor has support for C/C++ and it also has a form of intellisensing.

It does its intellisensing using the tags information produced by ctags:

Text editor for mac when programming crystals intent

votes

Visual studio is the most up to date and probably 'best' free ide. Dev C++ is a little dated, and mingw doesn't compile most of boost, (except regex). Most of the other compilers are dated and fading, like mars and borland. But you can use whatever you like!


votes

One that hasn't been mentioned is CodeLite, a powerful open-source, cross platform IDE. It has code completion amongst other features.


votes

I will quote myself from this question:https://stackoverflow.com/questions/780837/what-is-a-good-linux-ide-for-code-completion/917854#917854

Someone already said this before me, but QtCreator is really good for Qt4 development.

Not only it has a really good code completion support. It also knows a little more about the code and what to complete then I thought I needed. For example it knows about slots/signals. This means that connecting slots/signals via code is much easier then before.

The code editing is really nice. I remember that when refactoring code, (a few variables starting with underscore) it remembered the cursor position between lines and this made the refactoring much easier. The code indentation is smart enough to not get in my way (KDevelop was configurable, but QtCreator learns how I code. At least it feels like it does).

Then there are the cool key combinations. Most of the functionality of the IDE can be accessed using shortcuts. The 'control+k' thingie is a nice thing, which some command line users would like, but I am more GUI oriented. I don't use it.

What I really like, is the split window command. Yes, KDevelop3 does it, but not as nice as QtCreator. My favorite is control+e,3 which I use to display the header and implementations of my classes. Once again, the navigation here is the best I have seen (control+e,o).

It also has a nice SCM integration. I usually use SVN, and quite frankly it's not as good as I need: no shortcut to diff the project, no diff to commit the whole project, no option to commit several files.

I also don't like the 'total integration of external tools'. I still like the external QtAssistant - control+tab is easier to read large articles. But.... when you define a QString s, and 3 lines bellow you want to read the interface of QString, you put your cursor on 's' and press F1 - the assistant comes as a sidebar with QString's documentation. A huge advantage.

Want to follow a definition? F2 to the help. F4? Changes header/implementation (yes, eclipse does this better...).

The debugger is good. It's not as good as VisualStudio but ... it has support for Qt4 internals (you can see the value of QString and QList!).

I can continue... but IMHO you will need to give it a second and third try. It really is a good product. Not as flexible as Eclipse (hi ryansstack), but it's a really small, fast and young project. I stopped developing QDevelop because I really found what I was looking for.

ps: yes, I mean stopped developing QDevelop. I was in the development team.

My response is for Qt4 development only. Be warned.


votes

SlickEdit is very cool, and does support something like intellisense. At my current company I now use Visual Studio, and I've mostly gotten used to it - but there are still some SlickEdit features I miss.


votes

As a complete all-in one package, Visual Studio 2008 is the best IDE for C++ development with Windows


votes

Visual studio is great, but there are few tricks you can enhance it with. SonicFileFinder is one - helps you to search source files by partial match. You can map solution-tree to Alt+1, partial filename search to alt+2, and properties-window to alt+3. These are the three most used windows.

Another great tool that is ofter misunderstood is ctrl+shift+F shortcut for searching file contents. People dont use because it's so slow, but my advice is - deal with it. Searching the whole solution (or even all files in project folder) is only slow the first time you use it. Consequitive searches are as fast as jump-to-definition-feature.


votes

I've tried SlickEdit, Notepad++, emacs, jEdit and Visual Studio. VS wins hands-down for Best Windows IDE.

jEdit is probably the best GUI cross-platform editor/almost-IDE, and emacs is probably the best terminal cross-platform editor/almost-IDE. The advantage with using these is that when you jump to a Mac or Linux box, you know how they work.

I tried Eclipse, but it ran like a no-legged dog it was so slow, so I didn't use it much. Maybe tech is better now, but eh.


votes

With Intellisense, code folding, edit and continue, and a whole host of other features, Visual Studio is certainly the best IDE. However, for simple code editing, I often use UltraEdit. It has some great features not found in Visual Studio. One surprisingly useful feature is being able to select a column in the editor. You can find and replace within the column (useful for tabs vs. spaces wars...) delete the column, etc...


votes

How about CodeBlocks, i find it so fine with me, especially the new 10.05 version.


votes

I would recommend C++Builder, from Embarcadero, for C++ work and there is also a free version available. If you prefer Visual Studio, download one of free express editions.


votes

Here's another vote for Visual Studio. The debugger and Intellisense are definitely it's hallmarks. While other IDE's offer code-completion, I've often found them to be somewhat sluggish in this area for some reason (sluggish being a reference to the speed at which code-completion occurs and offers selections).

Text Editor For Mac When Programming Codes

Other than VS, NetBeans is a good polished IDE and is updated on a very regular cycle.


votes

I think it's largely a matter of taste, but I would recommend begginers to stick to a pure editor (vi, emacs...) instead of a full fledged IDE so they can figure out the whole toolchain that modern IDEs hide.

Just for the record, my weapon of choice is Emacs.


votes

Html Text Editor For Mac

personally i dont like microsoft......I hate to admit that visual studio is the best IDE i ever use.....Netbeans is gud but drasticaly slow....other free IDEs are useless..so people try to stick with VS....

Text Edito For Mac When Programming Cablevision


votes

votes

The question says specifically IDE so I am guessing thats what you want. In that case, the main options are Visual Studio and Eclipse CDT as stated above. Of those, I personally prefer Eclipse. However, don't necessarily limit yourself to an IDE. I prefer to use vim as my editor and WinDbg as my debugger. For compilation, your project will probably dictate this. I currently use NMAke on the command line.


Text Editor For Mac When Programming Crystals

votes

Text Edito For Mac When Programming Craftsman

Use Visual Studio 2010. You can get the full version free with DreamSpark


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