Luigi301 Posted October 18, 2017 Share Posted October 18, 2017 I'm working on a little project and I need to link RespeQt with protobuf. I'm running Windows 10 and using Qt Creator. I installed Qt 5.8.0. I installed MSYS2 32-bit and set it up with Qt's mingw mounted and using its GCC. I compiled the protobuf library from source and installed it to mingw's /lib directory. I added it to the project in Qt Creator: LIBS += -L"C:\Qt\Qt5.8.0\Tools\mingw530_32\lib" -lprotobuf INCLUDEPATH += "C:\Qt\Qt5.8.0\Tools\mingw530_32\include" But it doesn't seem to be linking it. I get a million undefined reference errors when I try to use any of the protobuf functions. What do I need to do to get it to link properly with the Qt mingw environment? Quote Link to comment Share on other sites More sharing options...
TheMontezuma Posted October 18, 2017 Share Posted October 18, 2017 I haven't tried it and it is likely that you have already done it, but my idea would be to make sure that you have fully re-built the project (to be 100% sure, delete the output folder). Quote Link to comment Share on other sites More sharing options...
Luigi301 Posted October 19, 2017 Author Share Posted October 19, 2017 I ended up getting it compiling in an Ubuntu VM. I was able to link against protobuf there. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.