qt4.8 - Qt 4.8.4 giving error in debug mode compilation -


i have installed qt 4.8.4 visual studio 2010.
qt-win-opensource-4.8.4-vs2010.exe
http://download.qt-project.org/archive/qt/4.8/4.8.4/

qt project file:

 libs += -lqaxserver \           -lqaxcontainer 

in qt gui application using qaxobject access ms-excel.

when compile project in release mode, not error. , gui running expected. able generate excel files using qaxobject objects.

but getting following 3 errors when doing debug build:

 file not found: qaxcontainer.lib(qaxbase.obj) file not found: qaxcontainer.lib(qaxobject.obj) file not found: qaxcontainer.lib(qaxtypes.obj) 

why happen in debug builds? how solve it?

edit :----

i commented libs & added config. still no change release mode compiling debug giving error.

#libs += -lqaxserver \ #        -lqaxcontainer config += qaxserver config += qaxcontainer

now getting 7 errors :----

axserverd.lib(qaxtypes.obj) : error lnk2005: "class qcolor __cdecl olecolortoqcolor(unsigned int)" (?olecolortoqcolor@@ya?avqcolor@@i@z) defined in qaxcontainerd.lib(qaxtypes.obj) qaxserverd.lib(qaxtypes.obj) : error lnk2005: "bool __cdecl qvarianttovariant(class qvariant const &,struct tagvariant &,class qbytearray const &,bool)" (?qvarianttovariant@@ya_nabvqvariant@@aautagvariant@@abvqbytearray@@_n@z) defined in qaxcontainerd.lib(qaxtypes.obj) qaxserverd.lib(qaxtypes.obj) : error lnk2005: "bool __cdecl qvarianttovoidstar(class qvariant const &,void *,class qbytearray const &,unsigned int)" (?qvarianttovoidstar@@ya_nabvqvariant@@paxabvqbytearray@@i@z) defined in qaxcontainerd.lib(qaxtypes.obj) qaxserverd.lib(qaxtypes.obj) : error lnk2005: "class qvariant __cdecl varianttoqvariant(struct tagvariant const &,class qbytearray const &,unsigned int)" (?varianttoqvariant@@ya?avqvariant@@abutagvariant@@abvqbytearray@@i@z) defined in qaxcontainerd.lib(qaxtypes.obj) qaxserverd.lib(qaxtypes.obj) : error lnk2005: "void __cdecl clearvariant(struct tagvariant *)" (?clearvariant@@yaxpautagvariant@@@z) defined in qaxcontainerd.lib(qaxtypes.obj) qaxserverd.lib(qaxserver.obj) : error lnk2019: unresolved external symbol "class qaxfactory * __cdecl qax_instantiate(void)" (?qax_instantiate@@yapavqaxfactory@@xz) referenced in function "class qaxfactory * __cdecl qaxfactory(void)" (?qaxfactory@@yapavqaxfactory@@xz) debug\geny.exe : fatal error lnk1120: 1 unresolved externals     link /libpath:"c:\qt\4.8.4\lib" /nologo /dynamicbase /nxcompat /debug /manifest /manifestfile:"debug\geny.intermediate.manifest" /subsystem:windows "/manifestdependency:type='win32' name='microsoft.windows.common-controls' version='6.0.0.0' publickeytoken='6595b64144ccf1df' language='*' processorarchitecture='*'" /out:debug\geny.exe @c:\users\dguleria\appdata\local\temp\geny.exe.17776.15.jom     c:\qtsdk\qtcreator\bin\jom.exe -f makefile.debug

that's because libraries named differently in debug version. shouldn't use libs qt libraries. should telling qmake figure out link options doing:

 config += qaxcontainer 

this documented here: http://qt-project.org/doc/qt-4.8/activeqt-container.html


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -