[Python-bugs-list] [ python-Bugs-428419 ] include/rangeobject.h needs extern "C"

noreply@sourceforge.net noreply@sourceforge.net
Mon, 04 Jun 2001 22:59:06 -0700


Bugs item #428419, was updated on 2001-05-29 12:53
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=428419&group_id=5470

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Barry Alan Scott (barry-scott)
Assigned to: Nobody/Anonymous (nobody)
>Summary: include/rangeobject.h needs extern "C"

Initial Comment:
include/rangeobject.h needs extern "C" if compiling
for C++ as the other .h files have.

The workaround is to add these lines to the my app 
code:

extern "C" DL_IMPORT(PyTypeObject) PyRange_Type;
extern "C" DL_IMPORT(PyObject *) PyRange_New(long, 
long, long, int);



----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2001-06-04 22:59

Message:
Logged In: YES 
user_id=21627

Fixed with 2.16 of rangeobject.h.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=428419&group_id=5470