X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Rugxulo Newsgroups: comp.os.msdos.djgpp Subject: Re: How to compile a C++ file with gcc Date: Sun, 31 Oct 2010 01:23:25 -0700 (PDT) Organization: http://groups.google.com Lines: 13 Message-ID: References: NNTP-Posting-Host: 65.13.115.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1288513405 14484 127.0.0.1 (31 Oct 2010 08:23:25 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Sun, 31 Oct 2010 08:23:25 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: 26g2000yqv.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.41 Safari/534.7,gzip(gfe) Bytes: 1699 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, try "gpp" instead. On Oct 31, 2:24=A0am, Varuna Seneviratna wrote: > > When I compiled first.cc with gcc the output I got was as follows.Is > there a way to compile C++ programs.According to the readme1st file I > haven't found a way .Can anybody advice me on this please > > > C:\thkinc>gcc first.cc -o first.exe > > c:/djgpp/tmp/ccYfbXk1.o:first.cc:(.eh_frame+0x11): undefined reference = to `___gx > > x_personality_v0' > > collect2: ld returned 1 exit status