Results 1 to 7 of 7

Thread: import library linking

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2006
    Posts
    7
    Thanks
    2

    Default Re: import library linking

    the linker output like below

    debug\form.o(.text+0x1c0): In function `ZN4FormC2EP7QWidget':
    D:/project/study/prac/form.cpp:13: undefined reference to `stopMovie(void*
    debug\form.o(.text+0x2d4): In function `ZN4FormC1EP7QWidget':
    D:/project/study/prac/form.cpp:13: undefined reference to `stopMovie(void*
    collect2: ld returned 1 exit status

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: import library linking

    How does the LIBS line look exactly? Is that a C++ library?

  3. #3
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5
    Thanked 86 Times in 81 Posts

    Default Re: import library linking

    Quote Originally Posted by jacek
    How does the LIBS line look exactly? Is that a C++ library?
    If isn't a C++ library, use this syntax

    Qt Code:
    1. extern "C"
    2. {
    3. #include <libinclude>
    4. }
    To copy to clipboard, switch view to plain text mode 
    A camel can go 14 days without drink,
    I can't!!!

Similar Threads

  1. plugin in a library
    By alisami in forum Qt Programming
    Replies: 2
    Last Post: 3rd October 2008, 18:21
  2. Link errors when linking chained libraries on windows
    By darkadept in forum Qt Programming
    Replies: 5
    Last Post: 26th May 2008, 15:52
  3. Replies: 1
    Last Post: 5th March 2007, 21:50
  4. linking qt3 to a library
    By thebra in forum Newbie
    Replies: 10
    Last Post: 11th November 2006, 02:25
  5. I got two problems when I used static compiled library of QT4
    By qintm in forum Installation and Deployment
    Replies: 8
    Last Post: 20th April 2006, 09:52

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.