Skip to content

Conversation

@fabiencastan
Copy link
Member

@fabiencastan fabiencastan commented Jul 15, 2021

To avoid this error:

Bresenham.obj : error LNK2019: unresolved external symbol "int __cdecl boost::math::sign<int>(int const &)" (??$sign@H@math@boost@@YAHAEBH@Z) referenced in function "class cctag::EdgePoint * __cdecl cctag::gradientDirectionDescent(class
 cctag::EdgePointCollection const &,class cctag::EdgePoint const &,int,unsigned __int64,class cv::Mat const &,class cv::Mat const &,int)" (?gradientDirectionDescent@cctag@@YAPEAVEdgePoint@1@AEBVEdgePointCollection@1@AEBV21@H_KAEBVMat@cv
@@3H@Z) [D:\release\CCTag\build-bundle\src\CCTag.vcxproj]
Bresenham.obj : error LNK2019: unresolved external symbol "int __cdecl boost::math::sign<float>(float const &)" (??$sign@M@math@boost@@YAHAEBM@Z) referenced in function "class cctag::EdgePoint * __cdecl cctag::gradientDirectionDescent(c
lass cctag::EdgePointCollection const &,class cctag::EdgePoint const &,int,unsigned __int64,class cv::Mat const &,class cv::Mat const &,int)" (?gradientDirectionDescent@cctag@@YAPEAVEdgePoint@1@AEBVEdgePointCollection@1@AEBV21@H_KAEBVMa
t@cv@@3H@Z) [D:\release\CCTag\build-bundle\src\CCTag.vcxproj]
D:\release\CCTag\build-bundle\Windows-AMD64\Release\CCTag.dll : fatal error LNK1120: 2 unresolved externals [D:\release\CCTag\build-bundle\src\CCTag.vcxproj]
P

Avoid build error with missing function boost::math::sign
@simogasp
Copy link
Member

simogasp commented Jul 15, 2021

Can you also post the compilation error message, just for reference?
And which version of boost? Cause on vcpkg they use 1.76 and everything was ok

@simogasp simogasp added the build:windows anything related to the windows build label Jul 15, 2021
@simogasp simogasp added this to the v1.1.0 milestone Jul 15, 2021
@fabiencastan
Copy link
Member Author

I was using latest version of vcpkg with boost-1.76 and VS 2019.
I don't have the log anymore.

@fabiencastan
Copy link
Member Author

Log of the error added to the description.

Copy link
Member

@simogasp simogasp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build:windows anything related to the windows build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants