Date: Thu, 03 Jun 2004 20:09:18 -0400 From: Chuck Swiger <cswiger@mac.com> To: John Oxley <oxo@rucus.ru.ac.za> Cc: questions@freebsd.org Subject: Re: c++ compile problem Message-ID: <40BFBDAE.4020407@mac.com> In-Reply-To: <20040604000045.GA10876@rucus.ru.ac.za> References: <20040604000045.GA10876@rucus.ru.ac.za>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40BFBDAE.4020407>