Results 1 to 10 of 10

Thread: MS Visual C++ Linker warnings

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2006
    Location
    Saint-Petersburg, Russia
    Posts
    63
    Thanks
    15
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: MS Visual C++ Linker warnings

    I try to remove all these macro and receive the same warnings and 4 unresolved externals, search error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall SearchEngine::setTimeRange(class QDateTime const &,class QDateTime const &)" (__imp_?setTimeRange@SearchEngine@@QAEXABVQDateTim e@@0@Z) referenced in function "private: void __thiscall SearchForm::Search(void)" (?Search@SearchForm@@AAEXXZ). SearchForm
    has to be member of class SearchEngine and has to contains pointer onto SearchEngine object, if I build library without GUI therefore without any graphical forms, all built ok.
    Best regards,
    Yuriy Rusinov.

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: MS Visual C++ Linker warnings

    You really should read what I write

    either you build a lib where searchengine.cpp is and leave the export macro like it is [b] or you don't build a lib, put searchengine.cpp into your app and remove the macro. What you currently do is that you have the export macro but also link searchengine.cpp to your app. Look into your pro-File (or whatever buildsystem you use) and you'll see!

  3. The following user says thank you to ChristianEhrlicher for this useful post:

    YuriyRusinov (6th December 2007)

  4. #3
    Join Date
    Apr 2006
    Location
    Saint-Petersburg, Russia
    Posts
    63
    Thanks
    15
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: MS Visual C++ Linker warnings

    OK, thanks, I try to research this on examples, because this problem does not arise before despite of linkage with other libraries take place.
    Best regards,
    Yuriy Rusinov.

Similar Threads

  1. Qt configure with msvc.net
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 08:17
  2. Compile App using OpenGL and Visual Studios 2003
    By Rayven in forum General Programming
    Replies: 3
    Last Post: 26th April 2007, 15:43
  3. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  4. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 21:41
  5. Qt 4.1.1 linker warnings
    By Matt Smith in forum Installation and Deployment
    Replies: 0
    Last Post: 26th February 2006, 22:14

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
  •  
Qt is a trademark of The Qt Company.