okular: Fix linking with MSVC 2015.

Review Request #125741 - Created Oct. 21, 2015 and submitted

Information
Gleb Popov
okular
frameworks
Reviewers
okular
okular/part.cpp includes interfaces/viewerinterface.h and its OKULARCORE_EXPORT macro gets expanded into __declspec(dllimport). This makes VS linker to drop ViewerInterface::~ViewerInterface() definition and to look for it in KF5OkularCore.dll. But this include is never used anywhere in okularcore, hence missing symbol.

Including interfaces/viewerinterface.h in any of okularcore sources fixes the problem.

  
Albert Astals Cid
Gleb Popov
Gleb Popov
Albert Astals Cid
Gleb Popov
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 6fdc6e22a955d160690ed9ebd0230d0247bef9a5 by Gleb Popov to branch frameworks.
Loading...