When building an application using OpenCasCade on Windows symbols get exported and a .lib and .exp file are created. This is caused by the macro Standard_EXPORT being defined as __declspec( dllexport ) (Standard_Macro.hxx).
I would like the symbols to be defined as __declspec( dllimport ). I worked around this by using:
#define Standard_EXPORT __declspec( dllimport )
before include any OpenCasCade headers. This however doesn't seem the proper way to deal with this. Does anyone know how it should be done?