From owner-freebsd-questions@FreeBSD.ORG Thu Jun 3 17:09:25 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64A3916A4CE for ; Thu, 3 Jun 2004 17:09:25 -0700 (PDT) Received: from out010.verizon.net (out010pub.verizon.net [206.46.170.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFE7C43D55 for ; Thu, 3 Jun 2004 17:09:24 -0700 (PDT) (envelope-from cswiger@mac.com) Received: from [192.168.1.3] ([68.161.84.3]) by out010.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20040604000924.KBTF15848.out010.verizon.net@[192.168.1.3]>; Thu, 3 Jun 2004 19:09:24 -0500 Message-ID: <40BFBDAE.4020407@mac.com> Date: Thu, 03 Jun 2004 20:09:18 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514 X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Oxley References: <20040604000045.GA10876@rucus.ru.ac.za> In-Reply-To: <20040604000045.GA10876@rucus.ru.ac.za> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out010.verizon.net from [68.161.84.3] at Thu, 3 Jun 2004 19:09:23 -0500 cc: questions@freebsd.org Subject: Re: c++ compile problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 00:09:25 -0000 John Oxley wrote: > I have written and incredibly complex cpp program [ ...hello, world deleted... ] > the compiler throws many error messages > $ g++ -ansi -pedantic -Wall -ggdb -o hello hello.cpp 2>&1 | wc -l > 88 > > I have posted the messages at http://oxo.rucus.net/cpp-err.txt > > If I compile without -ansi and -pedantic, everything works fine. This > is my first foray into cpp on FreeBSD, before I have coded only in C. > Please could someone tell me what I am doing wrong. Don't use -pedantic unless you are willing to submit patches to fix the warnings being generated. However, if you update your OS from 5.1 to 5.2.1, you will probably discover that the warnings go away to due cleanups and fixes within the system header files made since 5.1... -- -Chuck