¡@

Home 

python Programming Glossary: pbs_errno

Mapping a global variable from a shared library with ctypes

http://stackoverflow.com/questions/544173/mapping-a-global-variable-from-a-shared-library-with-ctypes

a shared library with ctypes I'd like to map an int value pbs_errno declared as a global in the library libtorque.so using ctypes... However for error checking purposes many of them set the pbs_errno variable so I need access to that as well. However if I try.. However if I try to access it I get pytorque.libtorque.pbs_errno _FuncPtr object at 0x9fc690 Of course it's not a function pointer..