Menu

#3 errno definition problem

open
nobody
None
5
2007-05-24
2007-05-24
No

The definition of wince_errno_pointer_function in wince_compatibility.h isn't "extern", which means that every file that includes Python.h will get its own copy of this variable and that causes link-time problems.

The definition:

int *(*wince_errno_pointer_function)(void);

This should be:

extern int *(*wince_errno_pointer_function)(void);

This is with python2.5 and eMebbeded Visual C++ 4.0 SP4 and compiling a C++ program that embeds python.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.