Mail Archives: djgpp/1999/05/20/18:49:01
106141,601 wrote:
>
> Hi
>
> I get this lines after installation of all needed files for
> compiling C++ programms on DOS base:
>
> C:/djgpp/lib/crt0.o(data+0xc2):crt0.s: undefined reference to `main´
> C:/djgpp/lib/libc.a(crt1.o)(.text+0x446):crt1.c: undefined reference to
> `main´
>
> I took the lines of the programm from a book. The lines are:
>
> #include <stream.h>
>
> main()
> {
> cout << "hello,world\n";
> }
>
> I hope you can help me with my problem.
Please post the exact command you used to compile. Then add `-v' and
post the output.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -