[ python-Bugs-845025 ] Symbols not exported in windows python23 dll

SourceForge.net noreply at sourceforge.net
Wed Nov 19 12:05:22 EST 2003


Bugs item #845025, was opened at 2003-11-19 09:59
Message generated for change (Comment added) made by charlet
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=845025&group_id=5470

Category: Windows
Group: Python 2.3
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Arnaud Charlet (charlet)
Assigned to: Thomas Heller (theller)
Summary: Symbols not exported in windows python23 dll

Initial Comment:
When trying to link with python23.lib to use python23.dll
under Windows, I am getting undefined symbols:

undefined reference to `_imp__PyString_Type'
undefined reference to `_imp__PyInt_Type'
undefined reference to `_imp__PyFunction_Type'
etc...

This is apparently due to the fact that these global
symbols are properly marked as dllexport/import in
the header file (stringobject.h), but are not marked as
such in the C file (stringobject.c), therefore these
variables are not exported in the DLL under Windows,
due to the special handling of global variables in DLLs.

Arno

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

>Comment By: Arnaud Charlet (charlet)
Date: 2003-11-19 17:05

Message:
Logged In: YES 
user_id=912669

My comment about not using dllexport/import in the C
files was misleading, since having it in the header file is
enough.

After investigation, it appears that you cannot link with
python23.lib since the global variables are not exported
there, but linking with python23.dll directly works fine,
so I will close this report.

Arno 

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

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



More information about the Python-bugs-list mailing list