www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/20/18:49:01

Sender: nate AT cartsys DOT com
Message-ID: <3744923A.14D279BE@cartsys.com>
Date: Thu, 20 May 1999 15:52:42 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.5 i586)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: gcc2.8.1
References: <3743C63E DOT 480 AT Compuserve DOT com>
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019