You are not logged in.

#1 2020-09-30 15:04:38

Noobalexcooper221b
Member
Registered: 2020-08-14
Posts: 4

/usr/bin/ld: cannot find -lx11

Trying to compile c++ program with libx11. Install libx11 using pacman. But still this error.

Offline

#2 2020-09-30 15:24:50

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: /usr/bin/ld: cannot find -lx11

It should really be using pkgconfig to get the linker flags. It's -lX11

Offline

#3 2020-09-30 17:54:06

Noobalexcooper221b
Member
Registered: 2020-08-14
Posts: 4

Re: /usr/bin/ld: cannot find -lx11

Got it. Thank you!!

Offline

Board footer

Powered by FluxBB