5minds / python_dll_load_test

Elster: Show how to load a cdll with ctypes multiply times

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample program to load multiply c-dlls

Prepare the cdll on osx

  1. cd cdll
  2. ./build_osx.sh create the libfoo.so
  3. cd ..
  4. Start the script python load_python.pyand load the dll twice

Prepare the cdll on windows

  1. Open VS 2013
  2. Load libfoo/libfoo.sln
  3. Compile ;-)
  4. Start script python load_python.py and load the dll twice

About

Elster: Show how to load a cdll with ctypes multiply times


Languages

Language:Python 56.5%Language:C 41.1%Language:Shell 2.4%