PDA

View Full Version : QAxObject Linker Error



ioannis
19th September 2008, 10:36
When adding to my application the following statement


QAxObject *excel = new QAxObject( "Excel.Application", this );

I recieve the following linker error:


1>QAxContainer.lib(qaxbase.obj) : warning LNK4217: locally defined symbol _isupper imported in function "private: void __thiscall MetaObjectGenerator::addSetterSlot(class QByteArray const &;)" (?addSetterSlot@MetaObjectGenerator@@AAEXABVQByteA rray@@@Z)

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@@AAEXABVQByteA rray@@@Z)

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

Thanks in advance!

maverick_pol
19th September 2008, 15:20
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

jpn
19th September 2008, 16:08
To build Qt applications that can host COM objects and ActiveX controls link the application against the QAxContainer module by adding


CONFIG += qaxcontainer

to your application's .pro file.