mir

Protobuf version conflicts with Qt

匿名 (未验证) 提交于 2019-12-03 01:17:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to use protobufs v 3.3.2 with Qt 5.9.1. This works with some Qt applications, but only if they are command line programs. Once I create a GUI application with Qt and protobufs, I get this error: [libprotobuf FATAL /home/mkraus/Documents/dev/star385/build/linux-desktop-debug-libs/protobuf/src/src/google/protobuf/stubs/common.cc:78] This program was compiled against version 2.6.1 of the Protocol Buffer runtime library, which is not compatible with the installed version (3.3.2). Contact the program author for an update. If you

java 多线程-死锁的产生以及解决方案

五迷三道 提交于 2019-11-27 10:14:42
死锁: 过多的同步造成相互不释放资源,从而过多地等待,一般发生于 同步中持有多个对象的锁 snchronized锁住对象同时,另一个snchronized就不能锁该对象 避免在一个代码块中,同时持有多个对象的锁 死锁: public class tt { public static void main(String[]args) { markup m1=new markup(1,"me"); markup m2 =new markup(2,"she"); m1.start(); m2.start(); } } //口红 class lipstick{ } //镜子 class mirror{ } //化妆 class markup extends Thread{ //加静态表示一份,不管创建几个对象都是一份 static lipstick lip=new lipstick(); static mirror mir=new mirror(); //选择 int choice; String girl; public markup(int choice,String girl) { this.choice=choice; this.girl=girl; } public void run(){ mark(); } //相互持有对方的对象锁-->可能造成死锁 /