Commit 8363c50
committed
Fix Windows: Shared (DLL) Builds Export
GPUDataRegistry in src/elements/mixin/dynamicdata.H uses
function-local statics (next_id, registry) inside template member
functions. With explicit template instantiation
IMPACTX_GPUDATA_INSTANTIATE), this works
for static builds. However, for DLL/shared library builds, each DLL
that links the library could get its own copy of these statics unless
the explicit instantiations are properly exported with visibility
attributes.1 parent 19f5905 commit 8363c50
2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
178 | 187 | | |
179 | 188 | | |
180 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
140 | | - | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
0 commit comments