Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: how to compile c code in dsl bash?< Next Oldest | Next Newest >
imagineer_aman Offline





Group: Members
Posts: 1
Joined: May 2005
Posted: May 27 2005,21:01 QUOTE

Dear friends,
First of all, kudos to the DSL team for making a marvellous OS.I have the Live Cd Distro of Damn Small Linux.Its really cool.I am able to learn a lot of unix commands from the xterm.Heres my prob.

**sample file a.c contents**
#include<stdio.h>
void main()
{printf("hi");}

            ***
i tried compiling the sample file a.c in the bash shell as given below

$tcc a.c

$unable to include stdio.h ... was the error that i got

Can anyone help me out.How do i compile C programs in dsl???
Thanks!
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: May 27 2005,21:23 QUOTE

#include <tcclib.h>                /*<- use this  */

int main(void)
{
 printf("Hello World!\n");
 return 0;
}
Back to top
Profile PM WEB 
1 replies since May 27 2005,21:01 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: how to compile c code in dsl bash?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code