So can I actually use a UNIX book in order to learn how to use the Terminal?No need to use FreeBSD as Mac OS X is basically the same with a different GUI on top. Just learn to use the Terminal application in Mac OS X and you should be fine.
So can I actually use a UNIX book in order to learn how to use the Terminal?No need to use FreeBSD as Mac OS X is basically the same with a different GUI on top. Just learn to use the Terminal application in Mac OS X and you should be fine.
So can I actually use a UNIX book in order to learn how to use the Terminal?
What I'd like you to do is tell me other IDEs you know, and I'll check each of them. I've also heard some stuff about vim.
I've downloaded Emacs, and I can't seem to find my way around it. So now I'm downloading Vim from Google Code, VERY SLOWLY. I'm optimistic about it because I've also found some kind of *.PDF book which will most probably help me a lot.
Yes, I've just figured that out. What I was downloading turned out to be the graphical interfaces, which I pretty much get to hate, now that I discovered vim. I simply love it, and the tutorial I'm following is so awesomely written, I haven't read something so good in a while.Vim and Emacs come along with Mac OS X. No need to install them separately.
After I finish reading the 89-pages *.PDF, I'll try playing with it more by myself, and I'll also have a look over 'vimtutor'. I've already discovered the syntax highlighting by myself and it feels awesomeFor Vim, just go into the Terminal.app and type in 'vimtutor'. That'll help you get through all of the basic commands. There's some more advanced stuff than what's in there (and are real timesavers, too), but you'll be up and running with what it does have.
To reiterate what others have said, don't bother with Xcode for the simple things you're doing now. Generally, if you're just doing a CLI program, you won't care about all the project management. Plus, it's always good to know how the stuff works in the background. Try making your own Makefiles, modularize your programs, etc.
What is your opinion on Panic's CODA
$ cc myProgram.c
~/Projects/C/a.out
gcc -o myproj myproj.c
make myproj
I'm actually using g++ MYPROJ.CPP -O MYPROJ when I'm compiling my C++ programs (I'm sorry about not code-ing). Is it a syntax difference, or am I doing it in a wrong manner (I'm talking about you writing -o first, not the gcc/g++ commands).You're probably aware of this, jayrobinson, but:
You can specify a name for the output executable with gcc.
Code:gcc -o myproj myproj.c
You can even simplify it further. For really simple programs (that is, those with only one source file), you can use make without a makefile.
Code:make myproj
Both will produce the same named executable. If you have multiple sources, though, you have to use a Makefile.
g++ myproj.cpp -o myproj
g++ -o myproj myproj.cpp
make myproj
I didn't know at first anything about XCode, and being something delivered by the OS manufacturer, I assumed it's a bad tool with lots of flaws and limitations (see iWeb)...
I've downloaded Emacs, and I can't seem to find my way around it. So now I'm downloading Vim from Google Code, VERY SLOWLY. I'm optimistic about it because I've also found some kind of *.PDF book which will most probably help me a lot.