-
|
Greetings! I'm trying to use CFFI to compile these C source files and I'm just at a loss on how to feed the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Okay, I solved it myself, literally 16 minutes after posting this 😄 and The solution is to pass the The compiled code works perfectly. |
Beta Was this translation helpful? Give feedback.
-
|
Great that you figured it out! More generally, you can use any argument in |
Beta Was this translation helpful? Give feedback.
Okay, I solved it myself, literally 16 minutes after posting this 😄 and
ChatGPT-4 was absolutely useless in solving this problem. I happened on
the solution by trying out random solutions in an absolute desperation.
The solution is to pass the
.Sfiles as alist[str]of absolute paths into theextra_objectskwargand the absolute path of the directory of the C source code into the
extra_link_argskwargas
list[str]in this format:"-I/path/to/source/directory"of theffi.set_source()method.The compiled code works perfectly.