473,479 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Pyhon Extensions linker error, unresolved symbols

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
0 1672

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2060
by: Rebecca Hoffmann | last post by:
Hi, I have a serious problem while compiling a small project (a part of the Modular Flow Scheduling Middleware: ex1): There are 3 linker errors, all from symbols that point to templates: --...
2
3356
by: Senapathy | last post by:
VC++ .NET 2003 Standard Edition Win XP, SP2 Hi, I have a code that builds under VC6.0, but fails to link in VC7.1. The offending code is as follows: _AFX_RICHEDIT_STATE* const pEditState...
4
1796
by: Joel Whitehouse | last post by:
Hello All, I have a Visual C++ 2003 dll solution in a directory called "Antenna Test Range Control", and when I comile it, I get the error LNK1104: cannot open file "antenna.obj". When I remove...
3
3268
by: ralphsieminsky | last post by:
A project compiles fine under VS 2005 RC without the /clr option. However, when /clr is turned on several errors appear: - A symbol exported from a DLL is not found by another DLL referencing...
3
8038
by: Chucker | last post by:
Hi Folks, I got a Wrapper Dll around a native C++ static library. In .NET 1.1 this worked fine. When moving to .NET 2.0 I get a couple of unresolved externals / linker errors: Error 16 error...
0
1734
by: VivekR | last post by:
I have a MFC application developed using VC++ 5. Recently I ported that to VC++ 7.1 and now I am trying to compile the MFC application with /CLR under VC++ 7.1. And I get linker errors referring to...
1
3257
by: developer | last post by:
Hi All I have made a .NET project. the files included are borland c++ files that i am migrate to VC++ .NET I am using Microsoft Visual C++ .NET 2003. the compilation goes through properly,...
0
1694
by: Andrea Gavana | last post by:
Hello NG, I'm struggling and googling around, but without big success. I am trying to build a fortran extension with F2PY, and it seems to me an impossible task. At the moment, I have the...
1
4138
by: Deepath G | last post by:
This is deepath.. I am getting some linker error when i am trying to connect Websphere MQ using Borland C++ Builder 2006 using imqi.hpp on windows. Error Message ----------------------- ...
0
6899
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7019
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6719
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6847
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5312
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4463
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2980
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2970
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1288
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.