Linux and c++

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dexion

    #1

    Linux and c++

    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/ =-

  • roberts.noah@gmail.com

    #2
    Re: Linux and c++


    Dexion wrote:[color=blue]
    > 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[/color]

    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.

    Comment

    • dexion

      #3
      Re: Linux and c++

      roberts.noah@gm ail.com wrote in
      news:1138656505 .361748.175620@ g43g2000cwa.goo glegroups.com:
      [color=blue]
      >
      > Dexion wrote:[color=green]
      >> 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[/color]
      >
      > 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.
      >
      >[/color]

      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.:)

      Comment

      • Ben Pope

        #4
        Re: Linux and c++

        dexion wrote:[color=blue]
        > roberts.noah@gm ail.com wrote in
        > news:1138656505 .361748.175620@ g43g2000cwa.goo glegroups.com:
        >[color=green]
        >> Dexion wrote:[color=darkred]
        >>> 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[/color]
        >> 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.
        >>
        >>[/color]
        >
        > 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.:)[/color]

        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
        --
        I'm not just a number. To many, I'm known as a string...

        Comment

        Working...