Embedding Python w/ Borland C++ 5.5

Gregg T. Geiger gt.geiger at worldnet.att.net
Sat Apr 7 09:46:33 EDT 2001


Is anybody familiar w/ the specifics of how to embed Python (say 2.0) using
the Borland compiler?  I understand there may be a leading underscore issue
associated with the Python names designed to work w/ MS Visual C++.
Specifically, when I compile and link

#include "Python.h"

int main()
{
  Py_Initialize();
  return 0;
}

the compilation goes fine but a link error stating

Error: Unresolved external '_Py_Initialize' referenced from EMBED.OBJ

is given.

Any success stories (and guides) would be appreciated.

Gregg





More information about the Python-list mailing list