"DHOLLINGSWORTH2" <DH*************@cox.net> writes:
"MattFit" <ms*********@comcast.net> wrote in message
news:04******************************@localhost.ta lkaboutprogramming.com...I just downloaded the LCC-Win Compiler and wrote the following program:
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
printf("Hello World\n");
return 0;
}
And I get 'Function main is not defined.' Would anyone have an idea as to
why?
I know nothing about LCC but what youve told me. You said "win" compiler
correct? That means it is looking for winmain not main. Look into the
documentation.
No, lcc-win32 should be able to handle the above program. If it were
looking for "winmain", it wouldn't print an error messages saying it
can't find "main". As I wrote earlier, comp.compilers.lcc is the
place for this question. It's probably a configuration problem.
--
Keith Thompson (The_Other_Keith)
ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.