Page 1 of 1

Linker options in CodeLite

Posted: Sun Mar 28, 2021 1:53 am
by bgining2this
Hello community.-

I am linking a example from Raylib library but CodeLite cant find my assets, i have created a resources folder and there i got my images, but no one seems to be included. Any help would be very appreciated. This is my linker options text g++ -o Confusion -Wall -std=c99 -lraylib -lGL -lm -lpthread -ldl -lrt -lX11

Re: Linker options in CodeLite

Posted: Sun Mar 28, 2021 11:04 am
by DavidGH
Can you build it in a terminal, outside CodeLite? If not, that's probably because the linker can't find raylib where it looks by default.

Try adding a pkg-config call, both in that terminal and in the CodeLite linker options. IIUC That would be, in a terminal:
$(pkg-config --libs raylib)

and inside CodeLite:
$(SHELL pkg-config --libs --cflags raylib)

(If 'pkg-config' is not found, you need to install pkgconfig.)