[New-bugs-announce] [issue4122] undefined reference to _Py_ascii_whitespace

Ralf Schmitt report at bugs.python.org
Tue Oct 14 15:39:08 CEST 2008

New submission from Ralf Schmitt <schmir at gmail.com>:

unicodeobject.h contains the following code:

extern const unsigned char _Py_ascii_whitespace[];

#define Py_UNICODE_ISSPACE(ch) \
	((ch) < 128U ? _Py_ascii_whitespace[(ch)] : _PyUnicode_IsWhitespace(ch))

When linking a module which uses the Py_UNICODE_ISSPACE macro, I get an
error "undefined reference to _Py_ascii_whitespace" (on windows using
the mingw compiler, linux works without problems).

The symbol should most probably be exported with the PyAPI_DATA macro...

This happens with python 2.6.

components: Windows
messages: 74743
nosy: schmir
severity: normal
status: open
title: undefined reference to _Py_ascii_whitespace
type: compile error
versions: Python 2.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list