how: embed + extend to control my running app?

David M. Cotter me at davecotter.com
Thu Jul 25 02:51:45 CEST 2013


update: okay so the python27.dll is in /windows/system32 so ignore that

i've set my include directory correct, so i can compile

i've set my "additional libraries" directory to the "libs" directory (where the ".lib" files are.  (note: NOT including "Lib" directory, cuz that's full of .py files and folders) (note: NOT including "DLLs" directory, cuz, why would i?)

No need to specify "additional dependencies" for the .lib file, cuz the pyconfig.h file does that.

but there is no "python27_d.dll" anywhere to be found, so i hacked pyconfig.h to get rid of the "_d".

so it all compiles.

but it won't link:

	LNK2001: unresolved external symbol __imp___Py_RefTotal
	LNK2001: unresolved external symbol __imp___Py_NoneStruct
	LNK2019: unresolved external symbol __imp__PyArg_ParseTuple
	LNK2019: unresolved external symbol __imp__PyFloat_FromDouble
	LNK2019: unresolved external symbol __imp__PyString_FromString
	LNK2019: unresolved external symbol __imp__PyRun_SimpleStringFlags
	LNK2019: unresolved external symbol __imp__Py_InitModule4TraceRefs
	LNK2019: unresolved external symbol __imp__Py_Initialize
	LNK2019: unresolved external symbol __imp__Py_SetProgramName
	LNK2019: unresolved external symbol __imp__Py_Finalize
	LNK2019: unresolved external symbol __imp__PyRun_SimpleFileExFlags

what, pray tell, am i doing wrong?  *hopeful face*



More information about the Python-list mailing list