
Thanks Steve I will have a look and see if I can make some sense of it. Regards John On Sun, 2010-02-28 at 16:18 +1000, Steve Lisson 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