Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Slackware Linux Help > Slackware 12 - C / C++ ?

Forgot Password?
 Slackware Linux Help   For help and Discussion about Slackware linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 12-07-2007   #1 (permalink)
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.
rommeo is offline  



Reply With Quote
Old 12-07-2007   #2 (permalink)
Super Moderator
 
Dapper Dan's Avatar
 
Join Date: Oct 2004
Location: The Sovereign State of South Carolina
Posts: 4,155
Send a message via AIM to Dapper Dan
I thought c/c++ was already included by default in Slackware. Should be there... Try from the command line:
Code:
c++ --help
__________________
CRUX 2.6 + IceWM Registered:#371367 New Members: click here
Dapper Dan is offline   Reply With Quote
Old 12-10-2007   #3 (permalink)
Linux Engineer
 
aliov's Avatar
 
Join Date: Dec 2006
Location: Geneva,Beirut
Posts: 1,079
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.
My Website.
aliov is offline   Reply With Quote
Old 12-15-2007   #4 (permalink)
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 .
rommeo is offline   Reply With Quote
Old 12-29-2007   #5 (permalink)
Linux Engineer
 
aliov's Avatar
 
Join Date: Dec 2006
Location: Geneva,Beirut
Posts: 1,079
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.
My Website.
aliov is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 08:17 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1