This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lemburg
Recipients ishimoto, lemburg
Date 2009-01-05.16:44:55
SpamBayes Score 0.0022200926
Marked as misclassified No
Message-id <49623906.4090205@egenix.com>
In-reply-to <1231171760.52.0.582449273969.issue4846@psf.upfronthosting.co.za>
Content
On 2009-01-05 17:09, Atsuo Ishimoto wrote:
> New submission from Atsuo Ishimoto <ishimoto@gembook.org>:
> 
> When I use Py_UNICODE_ISSPACE() in my C++ extension, I got following error.
> 
> test.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) unsigned char const * const _Py_ascii_whitespace"
> (__imp_?_Py_ascii_whitespace@@3QBEB) referenced in function "struct
> _object * __cdecl fff(struct _object *,struct _object *)"
> (?fff@@YAPAU_object@@PAU1@0@Z)
> 
> Py_ascii_whitespace defined in unicodeobject.h should be enclosed by
> 'extern "C" {' block for C++ support.

Agreed. There already is such a block in unicodeobject.h, so perhaps
a little rearranging could do the trick.
History
Date User Action Args
2009-01-05 16:44:56lemburgsetrecipients: + lemburg, ishimoto
2009-01-05 16:44:56lemburglinkissue4846 messages
2009-01-05 16:44:55lemburgcreate