Which package provides lgtk-3 on Ubuntu 18.04? Trying to compile c program "Hello World" :
>> gcc -Wall -g helloworld.c -o helloworld `pkg-config --cflags gtk+-3.0` \
`pkg-config --libs gtk+-3.0`
gcc: error: -lgtk-3: No such file or directory
gtk+-3.0.pc contains
line:
I have tried all ubuntu searches as others suggested but I have gotten no matches. Can not find lgtk-3! Libs: -L${libdir} -lgtk-3
causing the error. Obvious I have not downloaded all GTK libraries required. What am I missing?
Went back and downloaded gtk+3.0_3.22.30.orig.tar.xz and performed a re-install. This cleared up the missing library problem.
gcc
properly. Your command is incorrect. – fkraiem Apr 09 '19 at 21:46gcc -o helloworld helloworld.c & ./helloworld
? – Elder Geek Apr 13 '19 at 00:02&&
, not&
– wjandrea Apr 13 '19 at 22:38