Results 1 to 3 of 3

Thread: QAxObject Linker Error

  1. #1
    Join Date
    Apr 2008
    Posts
    12
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QAxObject Linker Error

    When adding to my application the following statement

    Qt Code:
    1. QAxObject *excel = new QAxObject( "Excel.Application", this );
    To copy to clipboard, switch view to plain text mode 

    I recieve the following linker error:

    Qt Code:
    1. 1>QAxContainer.lib(qaxbase.obj) : warning LNK4217: locally defined symbol _isupper imported in function "private: void __thiscall MetaObjectGenerator::addSetterSlot(class QByteArray const &;)" (?addSetterSlot@MetaObjectGenerator@@AAEXABVQByteArray@@@Z)
    2.  
    3. 1>QAxContainer.lib(qaxbase.obj) : error LNK2019: unresolved external symbol __imp__toupper referenced in function "private: void __thiscall MetaObjectGenerator::addSetterSlot(class QByteArray const &;)" (?addSetterSlot@MetaObjectGenerator@@AAEXABVQByteArray@@@Z)
    To copy to clipboard, switch view to plain text mode 

    Any hints? I have already included in the linker the library QAxContainer.lib.

    Thanks in advance!

  2. #2
    Join Date
    May 2007
    Location
    Lublin, Poland
    Posts
    345
    Thanks
    40
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QAxObject Linker Error

    Hi,

    Did you include the headers as well?
    Warning is a warning. Some symbols can't be found event if you included the .lib.

    P.S.
    Is the problem still active, or maybe you have already found a solution.

    Kacper
    Qt allows you to use everything you want
    wysota
    --------------------------------------------------------------------------------
    #if defined(Q_OS_UNIX) && defined(QT_DEBUG)
    abort(); // trap; generates core dump
    #else
    exit(1); // goodbye cruel world
    #endif

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QAxObject Linker Error

    To build Qt applications that can host COM objects and ActiveX controls link the application against the QAxContainer module by adding

    Qt Code:
    1. CONFIG += qaxcontainer
    To copy to clipboard, switch view to plain text mode 

    to your application's .pro file.
    J-P Nurmi

Similar Threads

  1. nmake error during .pro compiling
    By mattia in forum Installation and Deployment
    Replies: 5
    Last Post: 18th June 2008, 10:15
  2. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  3. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  4. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  5. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19

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.