I have downloaded python 2.7.
I add libs/include folder to linker/compiler, but get the following linker error:
1>dllmain.obj : error LNK2001: unresolved external symbol _PyString_FromString
Assuming you defaulted all the paths: Add the Python library to the project
python27.lib
Add the Python directories to the project
C:\Python27\include
C:\Python27\libs
Remember to set the linker output as a .pyd file
Output directory should be C:\\Python27\\Lib\\site-packages
, or copy the resulting .pyd file to site_packages yourself.
Make sure this is for All Configurations
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.