Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Pyhon Extensions linker error, unresolved symbols

Reply
Thread Tools

Pyhon Extensions linker error, unresolved symbols

 
 
Jim
Guest
Posts: n/a
 
      11-18-2003
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linker errors in VC++ project / unresolved reference to StandardC++ classes??? aberazioon C++ 1 01-26-2008 05:15 AM
Linker complains about unresolved symbol in STL mapp class Vijay Bajwa C++ 3 01-26-2007 07:08 PM
Using Py_InitModule3 -> [Linker Error] Unresolved external '_Py_InitModule4TraceRefs' iwl Python 2 12-09-2006 01:07 PM
unresolved external symbol linker error with a vector which is a static member variable Serge C++ 4 12-19-2004 05:39 PM
[Linker Error] Unresolved external Laszlo C Programming 1 12-06-2004 09:29 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57