PDA

View Full Version : Undefined reference to WNetGetConnection



RENaissance
3rd December 2010, 12:15
Qt Creator 2.1.0-rc1, OS Windows XP SP3. I need to get a remote name of local device. I use WNetGetConnection for this. But when compile a project, a get error from linker - "undefined reference" to WNetGetConnectionW@12. What need to solve this problem? Thank you.

Added after 27 minutes:

I add "LIBS += -lmpr" to project file and this solve my problem.