Re: long long warning
- From: Aaron Digulla <digulla wi-pc44 fh-konstanz de>
- To: gtk-devel-list redhat com
- Subject: Re: long long warning
- Date: Wed, 28 Oct 1998 10:53:19 +0100
Quoting Havoc Pennington (rhpennin@midway.uchicago.edu):
> When compiling with c++ -ansi, every file that includes glib (i.e., every
> file, pretty much) gives a message like:
>
> In file included from /home/hp/local/include/gdk/gdktypes.h:25,
> from /home/hp/local/include/gdk/gdk.h:23,
> from /home/hp/local/include/gtk/gtksignal.h:23,
> from ../../src/gtk--sigcommon.h:37,
> from ../../src/gtk--sig.h:152,
> from ../../src/gtk--/base.h:8,
> from ../../src/gtk--/object.h:8,
> from ../../src/gtk--/widget.h:8,
> from ../../src/gtk--/progress.h:7,
> from ./../progressbar.gen_h:2,
> from progressbar.cc:4:
> /home/hp/local/include/glib.h:564: warning: ANSI C++ does not support
> `long long'
> /home/hp/local/include/glib.h:565: warning: ANSI C++ does not support
> `long long'
>
> This is egcs 1.0.
>
> Does someone know how to avoid this? Some sort of #ifdef ANSI_CXX thing?
Compile without -ansi. -ansi means that the compiler should warn about
non-ANSI code and long long is not ANSI, so the warning is correct and
there.
Another solution (but one which might be impractical) is to use
#ifdef __STRICT_ANSI__ in glib.h to skip this part of the header
file.
--
Dipl. Inf. (FH) Aaron "Optimizer" Digulla Assistent im BIKS Labor, FB WI
"(to) optimize: Make a program faster by FH Konstanz, Brauneggerstr. 55
improving the algorithms rather than by Tel:+49-7531-206-514
buying a faster machine." EMail: digulla@fh-konstanz.de
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]