[Qt-interest] QAxServer.lib(qaxserver.obj) : Linking problem

Robert Hairgrove evorgriahr at hispeed.ch
Mon Apr 19 10:21:41 CEST 2010


arjun wrote:
> Hi All,
> I building application using VS2008 and qt 4.6.0.
> I am working on application which is previously build using VS2005 and 
> QT 4.3.0;
> I am able to build and run new application on QT 4.6.0.
> When i am trying to build some application using new version it is 
> giving following error.
> 
> /LTCG to the link command line to improve linker performance
> 1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of 
> other libs; use /NODEFAULTLIB:library
> 1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of 
> other libs; use /NODEFAULTLIB:library
> 1>QAxServer.lib(qaxserver.obj) : error LNK2001: unresolved external 
> symbol "class QAxFactory * __cdecl qax_instantiate(void)" 
> (?qax_instantiate@@YAPAVQAxFactory@@XZ)

These (MSVCRT and LIBCMT) are C runtime libraries which are causing the 
problems. It sounds like you have some old Qt libs in your build. 
Everything (including Qt 4.6!) should be built with the same compiler in 
order for it to link correctly. This is because MS has made some radical 
changes to the CRT dependencies of VS2008.

Maybe just "build clean" will solve the problem?



More information about the Qt-interest-old mailing list