Page 1 of 1

[C-Backend] Linking libraries?

Posted: Wed May 07, 2025 5:21 pm
by Mijikai
[C-Backend]
Not sure how to ask this but is there a way to link with additional libraries so i could use -lX11 or -lGL... on Linux for example?

Re: [C-Backend] Linking libraries?

Posted: Wed May 07, 2025 5:31 pm
by Quin
Yup, check out Import/ImportC/EndImport. :)
I'm not much of a Linux dev, but I think? You can pass something like -lmylib directly to the Import statement.

Re: [C-Backend] Linking libraries?

Posted: Fri May 09, 2025 4:35 am
by idle
You can pass in linker commands with -Wl flag to help resolve problems to static libs
viewtopic.php?t=51656