Jon Doe wrote: > > I have a file that is just source code "somefile.c" how would I compile this? The simplest way is to use 'cc'. Assuming somefile.c looks something like this, main() { printf ("Hello Merle\n"); } You can feed it to cc like this: $ cc somefile.c That will either complain about syntax errors or generate an executable file called 'a.out'. You can execute your program like this: $ ./a.out It will then greet you as if your name were Merle. -- Jim http://www.lads.com/~jim
- [newbie] compile source Jon Doe
- Re: [newbie] compile source Jim Crossley
- Re: [newbie] compile source Jon Doe
- Re: [newbie] compile source Anthony