Skip to content

Linking Staticly #3608

Answered by ghost
BuffaloBingo asked this question in Q&A
Dec 6, 2023 · 1 comments · 11 replies
Discussion options

You must be logged in to vote

@BuffaloBingo AFAIK statically is the default way. E.g.:

cd raylib/src/
make PLATFORM=PLATFORM_DESKTOP

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.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@ghost
Comment options

@ghost
Comment options

@BuffaloBingo
Comment options

@ghost
Comment options

@orcmid
Comment options

Answer selected by raysan5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants