*BSD News Article 77342


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.dacom.co.kr!arclight.uoregon.edu!news.bc.net!news.mindlink.net!van-bc!unixg.ubc.ca!umelba.Triumf.CA!felawka
From: felawka@umelba.Triumf.CA (L. Felawka)
Newsgroups: comp.unix.bsd.freebsd.misc,gnu.g++.help
Subject: Re: g++2.7.2 error on freebsd
Date: 1 Sep 1996 18:24:26 GMT
Organization: TRIUMF
Lines: 18
Distribution: world
Message-ID: <50ckcq$a0q@nntp.ucs.ubc.ca>
References: <8414360547401@maverick.mcs.anl.gov>
NNTP-Posting-Host: umelba.triumf.ca
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:26474 gnu.g++.help:13198

 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).

_____
Larry