[Python-bugs-list] undefined symbol in custom interpeter (PR#191)

gurney_j@efn.org gurney_j@efn.org
Tue, 25 Jan 2000 12:33:53 -0500 (EST)


Full_Name: John-Mark Gurney
Version: 1.5.2
OS: FreeBSD 3.4R
Submission from: adsl-63-195-54-213.dsl.snfc21.pacbell.net (63.195.54.213)


When I try to run the following program I get an undefined symbol on
PyDict_SetString.

#include <Python.h>

void
main()
{
        Py_Initialize();
        PyRun_SimpleString("import base64\n");
        Py_Finalize();
}

I believe this is because the interpeter library doesn't reference all of the
symbols
that it may need when loading modules.  So the linker will throw out any
unecessary
symbols which happen to include PyDict_SetString.  I tried to include
PyDict_SetString into
my program, but was unable to make it work.