Find the answer to your Linux question:
Results 1 to 5 of 5
Hi i have installed slackware 12 few days ago. i m a newbie and i need to write some programs for my lectures, but i dont know how to do ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2006
    Posts
    8

    Slackware 12 - C / C++ ?


    Hi

    i have installed slackware 12 few days ago. i m a newbie and i need to write some programs for my lectures, but i dont know how to do this on slackware.

    What should i do to write and compile a c/c++ program ?
    Is the program ready in Slackware or should i download and install something ?

    This is the first time i m using slackware for code writing. i will be glad if you can help.
    Thanx in advance.

  2. #2
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,628
    I thought c/c++ was already included by default in Slackware. Should be there... Try from the command line:
    Code:
    c++ --help
    Linux Mint + IceWM Registered:#371367 New Members: click here

  3. #3
    Linux Engineer aliov's Avatar
    Join Date
    Dec 2006
    Location
    Geneva,Beirut
    Posts
    1,078
    Quote Originally Posted by rommeo View Post
    What should i do to write and compile a c/c++ program ?
    Is the program ready in Slackware or should i download and install something ?
    In Slack you have almost all the dev packages installed, the packages are not splited, once you install a library in slack it comes with the headers.

    use gcc for c and g++ for c++, let me know if you need more informations
    Linux is not only an operating system, it's a philosophy.
    Archost.

  4. #4
    Just Joined!
    Join Date
    Jan 2006
    Posts
    8
    Thanx for the answer.

    Can you explain it step by step. Lets say my code is ready in a text file. How can i compile and execute it ? it's the first time i m using slackware and could not find any ide .

  5. #5
    Linux Engineer aliov's Avatar
    Join Date
    Dec 2006
    Location
    Geneva,Beirut
    Posts
    1,078
    Sorry for this late reply, i'm out these days.

    gcc text.c -o text to compile
    ./text will execute it

    Regards.
    Linux is not only an operating system, it's a philosophy.
    Archost.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •