[PythonCE] Python23.lib?
Brad Clements
bkc at murkworks.com
Mon Jun 27 17:25:22 CEST 2005
On 27 Jun 2005 at 16:02, Salvatore Russo wrote:
>
> What I don't understand, is why pyconfig.h (one of the file in all header to use python with C++) want to import this python23.lib. Here is the code:
> # pragma comment(lib,"python23.lib")
This pragma automatically tells windows compiler which library you need
to link to.
You always need a library if you're linking to the DLL, otherwise the linker
doesn't know which symbols are available, or their types (if using C++
mangling)
> I am using EVC4... I can try what you proposed. BUT if I generate a python23.lib from my python23.dll... and then include them in my built, I will have the python informa>
No, you won't have it twice. the .lib file is only used during the linking
process. It doesn't add anything to your exe.
Think of it as a symbol table, not a static link.
--
Brad Clements, bkc at murkworks.com (315)268-1000
http://www.murkworks.com
AOL-IM or SKYPE: BKClements
More information about the PythonCE
mailing list