LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 01-19-2006, 01:54 AM   #1
klyau
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0
How to use C in Damn Small Linux


HI All,

I'm new to Damn Small Linux (DSL) and have been looking for ways in using C in DSL. My concern goes to

(1) How can we compile and run C program in DSL?
(2) What is the most suitable application for developing C program?

Thanks for your help in advance!
 
Old 01-19-2006, 02:11 AM   #2
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 746

Rep: Reputation: 31
Not sure exactly what comes with DSL, but because of it's target audience (people that want a compact system) I doubt it comes with a huge development environment. As such, you're probably going to be using command line tools, which sounds worse than it is. Once you get used to them, they can be much more efficient than GUI environments. Vi and emacs are a pain to get used to, but they are probably the most powerful development tools DSL may come with by default (if it includes them, that is). For the most part, a simple editor and basic command line tools (gcc, gdb, nano, etc.) are the items you're likely to be using. Of course, you can add other tools, but I'm assuming you mean a default install.

On the upside, by using "basic" tools like these, you'll be forced to focus on the code, which is especially beneficial if you're new to programming. Too many newbie programmers get caught up in using their IDE (and it's automated tools), and don't really understand what's going on "under the hood". As a result, they end up tied to a certain language and set of tools, and don't gain the benefit of different programming styles and concepts that they could gain with more "basic" tools that demand a little more thought and effort, but I digress.

Another benefit is that, once you're used to using more basic tools, you'll be able to program on any system, as most IDE's are simply accessing gcc, gdb and the other items you'll be using on a more simplified system like DSL.
 
Old 01-19-2006, 02:11 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
1)
I suppose gcc is available on your platform. else get it.
Code:
gcc -Wall -o myprogram file1.c
2)
vi and make
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Damn Small Linux Mr. Hill Linux - Newbie 15 02-13-2005 02:18 PM
Damn Small Linux Sapsucker Linux - Laptop and Netbook 20 07-01-2004 01:40 PM
Damn Small Linux Nasty Linux - Newbie 2 10-11-2003 12:07 AM
(50 MB) Damn Small Linux !! :)) rvijay Linux - Newbie 2 08-24-2003 06:32 AM
Damn Small Linux Gerardoj Linux - General 1 08-11-2003 05:59 AM


All times are GMT -5. The time now is 12:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration