From: Skye Newsgroups: comp.os.msdos.djgpp Subject: Re: getting C++ to work Date: Fri, 28 Mar 1997 18:12:46 -0800 Organization: Uniserve Lines: 20 Message-ID: <333C7A9E.76E5@geocities.com> References: <01IH1I07JYTU92O1DP AT NICKEL DOT LAURENTIAN DOT CA> Reply-To: s_c AT geocities DOT com NNTP-Posting-Host: dy2-30.van.tvs.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp S2200253 AT NICKEL DOT LAURENTIAN DOT CA wrote: > > I've been trying to get c++ support under djgpp v2 to work for quite > some time now. I've installed gpp2721b.zip and lgp2721b.zip and compilation > of .cc files work but linking doesn't work (with programs that compile and > link successfully under g++ for linux). I've only really tried to do use C++ > is iostream.. > > I've set the djgpp and path environment variables (c codes compiles and links > fine). > > Anyone have any idea what this isn't working properly? > Are you using gcc with the -c switch to compile and gxx to link? Try: gcc -c [yoursource].cc -o obj.o gxx -o prog.exe obj.o If you've installed everything correctly then this should work. -sc