Skip to content

Re-add instantiation of Convolution for MSVC#6310

Merged
mvieth merged 1 commit intoPointCloudLibrary:masterfrom
mvieth:convolution_instantiation
Jul 17, 2025
Merged

Re-add instantiation of Convolution for MSVC#6310
mvieth merged 1 commit intoPointCloudLibrary:masterfrom
mvieth:convolution_instantiation

Conversation

@mvieth
Copy link
Member

@mvieth mvieth commented Jul 16, 2025

Partially reverting 1092d70
With MSVC, building the app pcl_convolve fails for static builds without these instantiations. With gcc and clang, these instantiations do not seem to be necessary, and with gcc they even produce a warning when building with default-hidden-visibility. So we only do the explicit instantiations when compiling with MSVC.

See also https://github.com/microsoft/vcpkg/pull/46378/files#diff-5fe93e814fe39547c696f5fbeabd7a655bf6d33e9be3a9a551a6114c8d6aee14
and 1092d70#r162020986

Partially reverting PointCloudLibrary@1092d70
With MSVC, building the app pcl_convolve fails for static builds without these instantiations.
With gcc and clang, these instantiations do not seem to be necessary, and with gcc they even produce a warning when building with default-hidden-visibility.
So we only do the explicit instantiations when compiling with MSVC.
@mvieth mvieth added module: filters changelog: fix Meta-information for changelog generation labels Jul 16, 2025
@mvieth mvieth merged commit c1c5b94 into PointCloudLibrary:master Jul 17, 2025
13 checks passed
@mvieth mvieth deleted the convolution_instantiation branch July 17, 2025 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: fix Meta-information for changelog generation module: filters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants