Linux and c++

D

Dexion

Am i wright in saying that if i open emacs to to write my program i can then run it in the gcc compiler by useing,

cmod 755 c++.txt, then use this to display it,

../c++.txt




--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-
 
R

roberts.noah

Dexion said:
Am i wright in saying that if i open emacs to to write my program i can then run it in the gcc compiler by useing,

cmod 755 c++.txt, then use this to display it,

./c++.txt

No. That is wrong on almost every level.

Do a search for gcc howto and I also suggest getting a book on basic
Unix commands.
 
D

dexion

(e-mail address removed) wrote in

No. That is wrong on almost every level.

Do a search for gcc howto and I also suggest getting a book on basic
Unix commands.

OK i missed the h out of chmod , My linux commands should be ok i
installed gentoo and went to colledge for that but YES my c++ is not
good.:)
 
B

Ben Pope

dexion said:
(e-mail address removed) wrote in



OK i missed the h out of chmod , My linux commands should be ok i
installed gentoo and went to colledge for that but YES my c++ is not
good.:)

You don't "run it in the compiler", you compile and link it with the
compiler (and linker) and *then* you may run it.

Ben Pope
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,069
Latest member
SimplyleanKetoReviews

Latest Threads

Top