Linking Python ctypes to shared object with CUDA functions

Edit: Might have just figured it out, will request delete if I did otherwise update post in a little bit.

The comment on your similar question here is correct:

[url]http://stackoverflow.com/questions/36292204/linking-python-ctypes-to-shared-object-with-cuda-functions[/url]

You are using the -L switch incorrectly. You might want to study how to specify libraries and library search paths to gcc. You can look at example makefiles in any of the CUDA sample projects.