Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!msunews!uwm.edu!math.ohio-state.edu!howland.erols.net!vixen.cso.uiuc.edu!milo.mcs.anl.gov!maverick.mcs.anl.gov!balay From: balay@maverick.mcs.anl.gov (Satish Balay) Newsgroups: comp.unix.bsd.freebsd.misc,gnu.g++.help Subject: Re: g++2.7.2 error on freebsd Date: Tue, 3 Sep 1996 16:52:41 GMT Organization: MCS, Argonne National Laboratory Lines: 27 Distribution: world Message-ID: <84176956123873@maverick.mcs.anl.gov> References: <8414360547401@maverick.mcs.anl.gov> <50ckcq$a0q@nntp.ucs.ubc.ca> NNTP-Posting-Host: maverick.mcs.anl.gov Cc: maxw@ix.netcom.com, felawka@umelba.Triumf.CA Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:26516 gnu.g++.help:13201 In article <50ckcq$a0q@nntp.ucs.ubc.ca>, L. Felawka <felawka@umelba.Triumf.CA> wrote: > In article <8414360547401@maverick.mcs.anl.gov> balay@maverick.mcs.anl.gov (Satish Balay) writes: > > > >Hi, > > > > I tried to compile this code on freebsd, and it dos'nt compile.. > > What am I doing wrong? I'm using g++ -v 2.7.2 > >It works for me, but gives compiler warning: > > foo.cc: In function `int NewPrintf(char * ...)': > foo.cc:14: warning: ANSI C++ forbids implicit conversion from `void *' > in argument passing > >I am using gcc-2.7.2 (with "repo-bsd" and "no-weak-support" patches >applied) and libg++-2.7.1 (compiled with gcc-2.7.2, of course). Ho do I fix my code so that these warnings do not occur.. Or is there a bug in the includefiles that flags such a usage as error. Otherplatforms like sun4,linux using gcc-2.7.2, I do not get this warning.. Thanks. Satish