Mail Archives: djgpp/1998/04/22/15:02:26
From: | tobias AT eunet DOT no (tobias)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | DJGPP and win95, problems!!!!!!
|
Date: | Wed, 22 Apr 1998 18:54:58 GMT
|
Organization: | EUnet Norway
|
Lines: | 29
|
Message-ID: | <353e2aa0.13901139@news.eunet.no>
|
Reply-To: | tobias AT eunet DOT no
|
NNTP-Posting-Host: | port40.brsund-pm3-1.eunet.no
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hello all,
I am a newbie on c, and was told to get djgpp, wich should be a very
good freeware program. I didnt even manage to compile hello.cpp.
It didnt seems like Microcrap and win95 worked very well with djgpp
and long filenames. After some testing I did manage to compile
hello.cpp, but when trying to compile a little bigger program (in C),
I got the following error:
D:\project>gcc -o program.exe program.c
d:/djgpp/lib/crt0.o(.data+0x92):crt0.s: undefined reference to `main'
d:/djgpp/lib/libc.a(crt1.o)(.text+0x312):crt1.c: undefined reference
to `main'
What could be wrong now ????
Also, There seems to be some many different C styles:
C
C++
ANSI C
Visual C
What are the differents ???
best regards,
tobias
- Raw text -