On Mon, 2007-07-02 at 00:19 -0700, varun_shrivastava wrote: > When i compile my extension, it compiles successfully, but while importing > it displays > error message as "undefined symbol app_cell_get_label" where > app_cell_get_label is function provided by > shared library (.so file in /usr/local/lib/) > > what should i do make my extension dynamically access the functions of that > .so file at runtime (this .so file is not a python module or extension, its > a normal library)
You probably need to link the Python module against the library, using -lname, where "name" is the name of the library without the starting "lib" and ending ".so". If on Linux, don't forget to have /usr/local/lib in /etc/ld.so.conf and tu run "ldconfig" after installing the shared library. Please note that this is not the most appropriate list for general Python/C API questions. There is now a specialized list for that, http://mail.python.org/mailman/listinfo/capi-sig _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
