linux build error: "undefined reference to symbol"

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

linux build error: "undefined reference to symbol"

Postby wrightpt » Wed Jun 22, 2016 3:24 pm

c@c:~/Downloads/myproject/cefsimple$ gcc -I/home/c/Downloads/myproject/ -lpthread -o `pkg-config --cflags gtk+-2.0` -DUSING_CEF_SHARED cefsimple_linux.cc -L/home/c/Downloads/myproject/cefsimple -lcef -lcef_dll_wrapper `pkg-config --libs gtk+-2.0`

output:

/usr/bin/ld: /tmp/ccR4GyDg.o: undefined reference to symbol 'XSetErrorHandler'
//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line


Any input would be awesome
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: linux build error: "undefined reference to symbol"

Postby magreenblatt » Wed Jun 22, 2016 4:38 pm

Did you try googling the error message? You need to link libx11.so.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 38 guests