how to compile c code in dsl bash?


Forum: Other Help Topics
Topic: how to compile c code in dsl bash?
started by: imagineer_aman

Posted by imagineer_aman on May 27 2005,21:01
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!

Posted by roberts on May 27 2005,21:23
#include <tcclib.h>                /*<- use this  */

int main(void)
{
 printf("Hello World!\n");
 return 0;
}

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.