ariya/phantomjs — pull request #309 by Zhaolong (2012-09-05 10:47:45+00:00)
Title: Remove the dirty link hack for a static PhantomJS + MSVC agains the static Qt included in PhantomJS.

Alessandro.Portale provided a dirty link hack to avoid the linker errors.
see his fixes :
src/main.cpp:
// HACK: When linking a static PhantomJS + MSVC agains the
// static Qt included in PhantomJS, we get linker errors.
// This noop function can cure them.

But i found that if i remove

DEFINES += BUILDING_WEBKIT
DEFINES += QT_MAKEDLL

from qt\src\3rdparty\webkit\Source\WebCore\WebCore.pro.

The linker errors is gone.

http://code.google.com/p/phantomjs/issues/detail?id=753&thanks=753&ts=1346841745