Results 1 to 1 of 1

Thread: Undefined reference to WNetGetConnection

  1. #1
    Join Date
    Mar 2010
    Location
    Russia, Murom
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Undefined reference to WNetGetConnection

    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.
    Last edited by RENaissance; 3rd December 2010 at 12:15.

Similar Threads

  1. undefined reference
    By digidas in forum Newbie
    Replies: 9
    Last Post: 19th May 2010, 13:04
  2. undefined reference
    By jayreddy in forum Qt Programming
    Replies: 1
    Last Post: 20th November 2009, 13:45
  3. Undefined reference to crt
    By derektaprell in forum Installation and Deployment
    Replies: 0
    Last Post: 20th October 2009, 08:34
  4. Undefined Reference To...
    By ManuMies in forum Qt Programming
    Replies: 6
    Last Post: 10th February 2009, 12:14
  5. Undefined reference
    By Salazaar in forum Newbie
    Replies: 12
    Last Post: 23rd May 2007, 10:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.