[New-bugs-announce] [issue14994] GCC error when using pyerrors.h

André Malo report at bugs.python.org
Sun Jun 3 21:31:09 CEST 2012

New submission from André Malo <nd at perlig.de>:

GCC error when using pyerrors.h

This ist my first attempt to test an extension with python 3.3. I've been using the 3.3.0a4 tarball.

I'm using very strict compiler settings when compiling my extension modules, especially -Wall -Werror (along with a lot more flags, like -pedantic, -std=c89).

Including Python.h includes pyerrors.h which emits:

/usr/include/python3.3/pyerrors.h:91:8: error: "__GNUC_MAJOR__" is not defined
/usr/include/python3.3/pyerrors.h:92:8: error: "__GNUC_MAJOR__" is not defined

I'm not sure, which of the compiler flags is responsible for dropping those macros. Simple defined() checks should fix that problem though.

components: Extension Modules, Interpreter Core
messages: 162230
nosy: ndparker
priority: normal
severity: normal
status: open
title: GCC error when using pyerrors.h
type: compile error
versions: Python 3.3

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list