So i'm trying to create .so files for use in the ctypes library for python but am running into a bit of a snag.
The files in the directory are cbw.h, cbw64.lib, and Main.c
During my attempt of creating the .so file using the following command string in Windows Powershell:
gcc -shared -o testlib.so -fPIC Main.C -lcbw
I get the error 'cannot find -lcbw'.
I put this in, because if I don't, I get that there are 'undefined references' in Main.C which were defined during the 'include cbw.h' line in Main.c
What is wrong with my command? I am able to create a .so file if I use a simple program like Hello world but cannot do so as soon as I try to import predefined functions.
edit:
If i use the object library cbw64.lib I get the error, ' error adding symbols: file in wrong format'