undefined reference to vtable for …

前端 未结 4 1415
余生分开走
余生分开走 2021-01-13 03:42

I am trying to write an Http proxy that basically works like indianwebproxy

So i fired up qtcreator and but one of my classes is failing to compile with the infamous

4条回答
  •  走了就别回头了
    2021-01-13 03:58

    You can't copy QTcpSockets, so it may cause other cryptic errors if you try to pass them by copy rather than by address.

        HttpProxyThreadBrowser(QTcpSocket * outgoingSocket,QTcpSocket * browserSocket,QObject *parent = 0);
    
    private:
        QTcpSocket* outgoingSocket;
        QTcpSocket* browserSocket;
    

    And completely recompiling your project may help, when you change header files, because qmake generated Makefile can sometimes fail to notice the changes.

提交回复
热议问题