
I think someone recommended this to me a while back: http://crasseux.com/books/ctutorial/ Or it may have been another one like it. Anyhow yeah there are lots of tutorials online, was there one that you were looking at? What are you trying to accomplish anyway? John On Sun, Feb 28, 2010 at 7:18 PM, Steve Lisson <SteveL(a)dedicatedservers.net.au> wrote:
Hi,
You can not just run a C program, C is not a scripting language as you appear to be trying to use it as, it requires you to first put the source code into a text file and then for it to be complied into an executable before you will be able to run it.
Just doing a quick Google search came across this which may help:
Regards, Steven
-----Original Message----- From: wlug-bounces(a)list.waikato.ac.nz [mailto:wlug-bounces(a)list.waikato.ac.nz] On Behalf Of jaytee(a)clear.net.nz Sent: Sunday, 28 February 2010 4:10 PM To: jaytee(a)clear.net.nz; Waikato Linux Users Group Subject: Re: [wlug] C program.....
I missed the "f" out of if :(
----- Original Message Follows -----
Hi All, Will someone please explain what I need to do to write and run a C program in the bash terminal.I think I may need to tell the terminal to run a c compiler. This is the outcome of a program I copied from a tutorial. john(a)sniffy:~$ #include <stdio.h> john(a)sniffy:~$ int main() bash: syntax error near unexpected token `(' I there is an easy to understand explanation I would like to hear it please.. Regards John
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug
wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug _______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug