Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared lib support is broken on Windows #458

Open
SpaceIm opened this issue Apr 4, 2020 · 0 comments · May be fixed by #461
Open

Shared lib support is broken on Windows #458

SpaceIm opened this issue Apr 4, 2020 · 0 comments · May be fixed by #461

Comments

@SpaceIm
Copy link
Contributor

SpaceIm commented Apr 4, 2020

  • fcl fails to build as a shared lib whatever Visual Studio version is used.
  • fcl can be build as a shared lib with MinGW (when it doesn't fail due to big obj), but it fails to be consumed.

I suspect a bad use of dllexport/dllimport in front of templates.

  • Visual Studio 2019 with MD runtime:

fcl_msvc_shared.txt

A lot of warning like this:

include/fcl/math/bv/AABB-inl.h(48,30): warning C4910: 'fcl::AABB<double>': '__declspec(dllexport)' and 'extern' are incompatible on an explicit instantiation

and errors like this:

include/fcl/math/geometry-inl.h(429,1): error C2893: Failed to specialize function template 'void fcl::normalize(Eigen::Matrix<_Scalar,3,1,0,3,1> &,bool *)'
  • MinGW:

fcl_mingw_shared.txt

If fails when consuming fcl with:

C:/Users/appveyor/.conan/data/fcl/0.6.1/SpaceIm/testing/package/460e327f62c1e86621f1d6a10e8238f247027750/include/fcl/math/geometry-inl.h:152:3: error: function 'S fcl::detail::maximumDistance_mesh(fcl::Vector3<S_>*, fcl::Vector3<S_>*, fcl::Triangle*, unsigned int*, int, fcl::Vector3<S_>&)' definition is marked dllimport
@SpaceIm SpaceIm linked a pull request Apr 7, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant