MicBosi / VisualizationLibrary

Visualization Library is a C++ middleware for high-performance 2D and 3D graphics applications based on OpenGL 1.x-4.x supporting Windows, Linux and Mac OS X.
http://VisualizationLibrary.org
Other
339 stars 94 forks source link

fix SceneManagerActorTree #163

Closed Abergard closed 5 years ago

Abergard commented 6 years ago

Hi,

When I am trying to use SceneManagerActorTree::tree() const function:

const vl::ActorTree* DoubleView::actorTree() const
{
    return mSceneManagerActorTree->tree();
}

I get the link error:

(Link target) -> core.lib(DoubleView.obj) : error LNK2019: unresolved external symbol "declspec(dllimport) public: class vl::ActorTree const * cdecl vl::SceneManagerBVH::tree(void)const " (_imp?tree@?$SceneManagerBVH@VActorTree@vl@@@vl@@QEBAPEBVActorTree@2@XZ) referenced in function "public: class vl::ActorTree const * _ _cdecl ocv::DoubleView::actorTree(void)const " (?actorTree@DoubleView@ocv@@QEBAPEBVActorTree@vl@@XZ).

From my information the template class should not be marked by __declspec, so I removed it and the error disappeared. I am not the expert in exporting dll, so I am waiting for you comment here.


This change is Reviewable