Question

I am using Visual Studio with a couple of Qt4 projects and I would like to switch to QtCreator, but keeping the msvc compiler.

After configuring everything in QtCreator I get this linker error:

LNK2001: unresolved external symbol _imp_SysAllocString@4

Any idea about what is going on? I don't get this error if I compile using Visual Studio.

Was it helpful?

Solution

You need to link against OleAut32.dll. Try adding this to your qmake project file:

win32: LIBS += -loleaut32 -lole32
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top