Results 1 to 9 of 9

Thread: Plugin compiler error: undefined reference

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Join Date
    Sep 2009
    Location
    Nanjing, China
    Posts
    46
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Plugin compiler error: undefined reference

    Quote Originally Posted by faldżip View Post
    I don't think so. Do you have ui.lib file generated with ui.dll. I'm not sure if DESTDIR works with it so check in debug folder. This ui.lib is the right file to link with while compiling and ui.dll it the right file to link with in runtime. And the previous syntax was okay - I use it on both - Windows and Linux.
    Sorry, I check both DESTDIR and debug folders and there is no such file called ui.lib.

    Quote Originally Posted by faldżip View Post
    Are you sure? You are qmaking and building test.pro or app.pro?
    Yes, I rebuild project with test.pro and app.pro each time and there is no error.

    Quote Originally Posted by faldżip View Post
    Open VS command prompt, go to the app dir and run:
    Qt Code:
    1. qmake && nmake
    To copy to clipboard, switch view to plain text mode 
    and see what you get.
    I'm sorry but I have no VS compiler. So I open app.pro as a separate project and build it, nothing wrong here.

    Quote Originally Posted by faldżip View Post
    Use Dependency Walker to check library dependencies of your app.exe. And did you try also running it from outside of QtCreator just by double clicking test.exe?
    I have a little trouble with Dependency Walker. What results should I looking for? I checked test.exe(not app.exe, TARGET = test in app.pro) and its library contains ui.dll. And I tried to open test.exe outside QtCreator, no window opened...
    Last edited by FinderCheng; 1st May 2010 at 16:54.

Similar Threads

  1. Getting Undefined Reference Error
    By A.H.M. Mahfuzur Rahman in forum Qt Programming
    Replies: 2
    Last Post: 22nd June 2009, 02:12
  2. Error - undefined reference qMain
    By tpf80 in forum Newbie
    Replies: 4
    Last Post: 23rd February 2009, 07:54
  3. Error : undefined reference to `vtable for MyClass'
    By joseph in forum Qt Programming
    Replies: 23
    Last Post: 15th June 2007, 11:21
  4. error undefined reference ...............
    By amit_pansuria in forum Qt Programming
    Replies: 2
    Last Post: 8th June 2007, 14:28
  5. Undefined Reference error!!!
    By Kapil in forum Newbie
    Replies: 25
    Last Post: 28th March 2006, 12:03

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.