Other Help Topics :: how to compile c code in dsl bash?
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!
#include <tcclib.h> /*<- use this */
int main(void)
{
printf("Hello World!\n");
return 0;
}
original here.