Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. double square(double x){
  2. return x*x;
  3. }
  4.  
  5. gcc -c tetr.c -o tetr.o
  6.  
  7. gcc -shared -Wl,-soname,library.so -o tetr.so tetr.o
  8.  
  9. import ctypes
  10. lib = ctypes.cdll.LoadLibrary("tetr.so")
  11.  
  12. ArgumentError: argument 1: <type 'exceptions.TypeError'>: Don't know how to convert parameter 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement