[issue19153] Embedding into a shared library fails again

2013-10-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, making it a documentation issue in case it deserves clarification in the docs. -- assignee: -> docs@python components: +Documentation -Library (Lib) nosy: +docs@python ___ Python tracker

[issue19153] Embedding into a shared library fails again

2013-10-04 Thread Rinat
Rinat added the comment: > Or perhaps you can dlopen the CPython shared library with the RTLD_GLOBAL > flag. I don't know. Yes, it works. I made it is my shared library before boost block like this { void* handle = dlopen("libpython2.7.so", RTLD_LAZY | RTLD_GLOBAL); // boost wrapper for py

[issue19153] Embedding into a shared library fails again

2013-10-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: > No custom builds. Every package from ubuntu repository. Psycopg2 installed by > pip You may have to rebuild packages using the custom Python, not the system Python, since the linker options have to be different (especially the "shared" part: Ubuntu's Python

[issue19153] Embedding into a shared library fails again

2013-10-03 Thread Rinat
New submission from Rinat: I have same error as here described http://bugs.python.org/issue4434 I made everythings according this article http://docs.python.org/2/extending/embedding.html#compiling-and-linking-under-unix-like-systems and more but when i try to call interpriter from C++ it fail