Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #51178

Re: how: embed + extend to control my running app?

Newsgroups comp.lang.python
Date 2013-07-24 17:51 -0700
References <6c1a5595-b2f7-4712-8c9c-be664dd8ed18@googlegroups.com> <mailman.4893.1374282263.3114.python-list@python.org> <823607d0-9365-4dbb-b80c-8221bb514b01@googlegroups.com> <b59q27Fj75iU1@mid.individual.net> <522e7d68-6c26-4036-9389-bc780d792f86@googlegroups.com>
Message-ID <e774c415-534a-432d-a08b-fd9bbe1e5853@googlegroups.com> (permalink)
Subject Re: how: embed + extend to control my running app?
From "David M. Cotter" <me@davecotter.com>

Show all headers | View raw


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*

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

how: embed + extend to control my running app? "David M. Cotter" <me@davecotter.com> - 2013-07-19 16:52 -0700
  Re: how: embed + extend to control my running app? Chris Angelico <rosuav@gmail.com> - 2013-07-20 11:04 +1000
    Re: how: embed + extend to control my running app? "David M. Cotter" <me@davecotter.com> - 2013-07-23 22:15 -0700
      Re: how: embed + extend to control my running app? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-07-24 22:53 +1200
        Re: how: embed + extend to control my running app? "David M. Cotter" <me@davecotter.com> - 2013-07-24 09:10 -0700
          Re: how: embed + extend to control my running app? Chris Angelico <rosuav@gmail.com> - 2013-07-25 02:25 +1000
            Re: how: embed + extend to control my running app? "David M. Cotter" <me@davecotter.com> - 2013-07-24 10:40 -0700
              Re: how: embed + extend to control my running app? "David M. Cotter" <me@davecotter.com> - 2013-07-24 12:35 -0700
        Re: how: embed + extend to control my running app? "David M. Cotter" <me@davecotter.com> - 2013-07-24 13:37 -0700
          Re: how: embed + extend to control my running app? "David M. Cotter" <me@davecotter.com> - 2013-07-24 17:51 -0700
            Re: how: embed + extend to control my running app? Dave Angel <davea@davea.name> - 2013-07-24 21:14 -0400
              Re: how: embed + extend to control my running app? "David M. Cotter" <me@davecotter.com> - 2013-07-25 11:24 -0700

csiph-web