Linking Staticly #3608
Answered
by
ghost
BuffaloBingo
asked this question in
Q&A
Linking Staticly
#3608
-
Does anybody know of a way to statically link raylib, I am using msys2 and gcc? Any answers would be helpful. I saw that statically linking has been added, but I don't know how to do it. |
Beta Was this translation helpful? Give feedback.
Answered by
ghost
Dec 6, 2023
Replies: 1 comment 11 replies
-
@BuffaloBingo AFAIK statically is the default way. E.g.:
The |
Beta Was this translation helpful? Give feedback.
11 replies
Answer selected by
raysan5
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@BuffaloBingo AFAIK statically is the default way. E.g.:
The
libraylib.a
will be generated on the src folder. Then, when you compile your program/app, just pass the-L/path/to/libraylib.a -lraylib
to gcc.