LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 12: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, 01:11 AM   #2
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

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, 01:11 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

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



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 01:18 PM
Damn Small Linux Sapsucker Linux - Laptop and Netbook 20 07-01-2004 12:40 PM
Damn Small Linux Nasty Linux - Newbie 2 10-10-2003 11:07 PM
(50 MB) Damn Small Linux !! :)) rvijay Linux - Newbie 2 08-24-2003 05:32 AM
Damn Small Linux Gerardoj Linux - General 1 08-11-2003 04:59 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:34 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
Open Source Consulting | Domain Registration