Shane Steinmetz | 8 Feb 2011 20:56
Picon
Favicon

Nano installation, compiling, c++ building. Mac

Hello,


I am very new to nano and also c++ compiling, using it for my Computer Science Lab at Kent State University. What i need is a step-by-step installation for a Mac OS. 

For example:

What to download,
Where to put command lines,
How to compile in c++,
etc...

Basically i need everything, because i am having immense trouble with following directions that are given on sites and even on the README.

The more amount of detail, the better.

Thank you very much
_______________________________________________
Help-nano mailing list
Help-nano <at> gnu.org
http://lists.gnu.org/mailman/listinfo/help-nano
Shane Steinmetz | 9 Feb 2011 02:50
Picon
Favicon

Compile

I was told by my college instructor that i can compile in nano,


My file is named  test.cpp

my instructor said to compile, i would type

g++ test.cpp

is this possible? if so where would i type that to compile it?
_______________________________________________
Help-nano mailing list
Help-nano <at> gnu.org
http://lists.gnu.org/mailman/listinfo/help-nano
Eitan Adler | 9 Feb 2011 04:06
Favicon

Re: Compile

nano is a text file editor - much like "notepad.exe" in Windows.
what your instructor meant is that you could use nano to edit the
files and use g++ (a different program) to compile it.

Both of these programs are run from the shell - which is a program
that executes other programs. The shell is run in a terminal emulator
(or real terminal)

You need to find a Terminal Emulator you like (I like Terminal or
urxvt) and run a shell you like (I prefer zsh - but you are likely to
have bash). Then you type commands into said terminal.

On Tue, Feb 8, 2011 at 8:50 PM, Shane Steinmetz <ssteinm3 <at> kent.edu> wrote:
> I was told by my college instructor that i can compile in nano,
> My file is named  test.cpp
> my instructor said to compile, i would type
> g++ test.cpp
> is this possible? if so where would i type that to compile it?
> _______________________________________________
> Help-nano mailing list
> Help-nano <at> gnu.org
> http://lists.gnu.org/mailman/listinfo/help-nano
>
>

--

-- 
Eitan Adler
Chris Allegretta | 9 Feb 2011 04:45

Re: Compile

Dear Shane,

Nano is not a unix shell, it is a text editor.  It doesn't compile
code.  If you haven't already, I would check out a Unix guide like the
one at:
http://info.ee.surrey.ac.uk/Teaching/Unix/

Tutorial Section 7 talks about compiling software, but you may find
other parts useful as well.

On Tue, Feb 8, 2011 at 8:50 PM, Shane Steinmetz <ssteinm3 <at> kent.edu> wrote:
> I was told by my college instructor that i can compile in nano,
> My file is named  test.cpp
> my instructor said to compile, i would type
> g++ test.cpp
> is this possible? if so where would i type that to compile it?
> _______________________________________________
> Help-nano mailing list
> Help-nano <at> gnu.org
> http://lists.gnu.org/mailman/listinfo/help-nano
>
>

Gmane