Skip to content

Commit 5bbcb1f

Browse files
committed
Fix linking vklInit of the GPU device *static* lib on Windows
1 parent f86aa50 commit 5bbcb1f

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Version History
88
- Fix benchmark compilation with MSVC
99
- Ship all release packages with OpenVDB
1010
- Set DEPENDENTLOADFLAG also on the Windows binaries built with Clang/SYCL
11+
- Fix linking applications against the GPU device module on Windows
1112
- Update to latest versions of dependencies
1213

1314
### Open VKL 2.0.2

‎openvkl/devices/gpu/api/DeviceAPI.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ inline void assertValidTime(const float time)
4343

4444
extern "C" void openvkl_init_module_gpu_device();
4545

46-
extern "C" OPENVKL_DLLEXPORT void vklInit()
46+
extern "C" void vklInit()
4747
{
4848
openvkl_init_module_gpu_device();
4949
}

‎openvkl/devices/gpu/include/openvkl/device/openvkl.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
extern "C" {
2222
#endif
2323

24-
OPENVKL_INTERFACE void vklInit();
24+
// not OPENVKL_INTERFACE: the GPU device module is a static library
25+
void vklInit();
2526

2627
///////////////////////////////////////////////////////////////////////////////
2728
// Sampling ///////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)