By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,496 Members | 1,517 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,496 IT Pros & Developers. It's quick & easy.

Pyhon Extensions linker error, unresolved symbols

P: n/a
Jim
All,

I'm trying to debug a Python GPF while running a script
that we've written. After fixing up some of the paths for the Python
build and successfully building Python from ActiveState source, I
compiled the Python Extensions, but am getting the following error:

------ Build started: Project: PyWinTypes, Configuration:
Release Win32 ------

Linking...

Creating library Build\PyWinTypes.lib and object
Build\PyWinTypes.exp

PyWinTypesmodule.obj : error LNK2001: unresolved external symbol
"struct _object * __cdecl PyWinMethod_NewSECURITY_ATTRIBUTES(struct
_object *,struct _object *)"
(?PyWinMethod_NewSECURITY_ATTRIBUTES@@YAPAU_object @@PAU1@0@Z)

PyWinTypesmodule.obj : error LNK2019: unresolved external symbol
"struct _typeobject PySECURITY_ATTRIBUTESType"
(?PySECURITY_ATTRIBUTESType@@3U_typeobject@@A) referenced in function
_initpywintypes

Build\System\PyWinTypes22.dll : fatal error LNK1120: 2 unresolved
externals

Build log was saved at
"file://e:\Python\Source\ActivePython-2.2.3-226\src\PyWin32\win32\Build\Temp\PyWinTypes\Releas e\BuildLog.htm"

PyWinTypes - 3 error(s), 0 warning(s)

---------------------- Done ----------------------

Build: 0 succeeded, 1 failed, 0 skipped



------ Build started: Project: PyWinTypes, Configuration: Release
Win32 ------

Linking...

Creating library Build\PyWinTypes.lib and object
Build\PyWinTypes.exp

PyWinTypesmodule.obj : error LNK2001: unresolved external symbol
"struct _object * __cdecl PyWinMethod_NewSECURITY_ATTRIBUTES(struct
_object *,struct _object *)"
(?PyWinMethod_NewSECURITY_ATTRIBUTES@@YAPAU_object @@PAU1@0@Z)

PyWinTypesmodule.obj : error LNK2019: unresolved external symbol
"struct _typeobject PySECURITY_ATTRIBUTESType"
(?PySECURITY_ATTRIBUTESType@@3U_typeobject@@A) referenced in function
_initpywintypes

Build\System\PyWinTypes22.dll : fatal error LNK1120: 2 unresolved
externals

Build log was saved at
"file://e:\Python\Source\ActivePython-2.2.3-226\src\PyWin32\win32\Build\Temp\PyWinTypes\Releas e\BuildLog.htm"

PyWinTypes - 3 error(s), 0 warning(s)

---------------------- Done ----------------------

Build: 0 succeeded, 1 failed, 0 skipped



Do you have any ideas why this would happen? (FYI: I'm including the
python22.lib on the linker line in case you're wondering)

Thanks,

Jim
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.