错误
/usr/bin/ld: /tmp/ccEhmpVQ.o: undefined reference to symbol 'gdk_screen_get_default' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libgdk-x11-2.0.so: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status
解决办法
判断是链接的库中,同时包含3.0、2.0。