Haifei,
Please pull the latest code in the ‘main’ branch and try again.
Out of curiosity: what 3rd party package are you working with and how do you 
couple it to Chrono?
--Radu

From: [email protected] <[email protected]> On Behalf 
Of Haifei Chen
Sent: Tuesday, September 17, 2024 7:26 AM
To: ProjectChrono <[email protected]>
Subject: [chrono] error: call of overloaded 'cos(double&)' is ambiguous

Hello,

While compiling a third-party code coupled with chrono, c++ compiler complained 
about the said error in ChVector3.h (also for cos and sin)
https://github.com/projectchrono/chrono/blob/main/src/chrono/core/ChVector3.h#L848<https://urldefense.com/v3/__https:/github.com/projectchrono/chrono/blob/main/src/chrono/core/ChVector3.h*L848__;Iw!!Mak6IKo!K6V-V3qPwotZ3fPFbZHncRqyDnLeY3efvZRulwVx7JQ4a1I0hG9wTvxig7vdHKu3oLtDgWtMSX6YG66Dyg$>

/users/hfchen/chrono/chrono/src/chrono/core/ChVector3.h:462:18: error: call of 
overloaded 'cos(double&)' is ambiguous
  462 |     res.x() = cos(norm_angle);  // 1) rot 'norm.angle'about z
  463 |     res.y() = sin(norm_angle);
  466 |     res.y() = projlen * cos(pol_angle);
  467 |     res.z() = projlen * sin(pol_angle);
  848 |     return sqrt(Length2());

I think the issue is similar to this one at 
https://gitlab.kitware.com/vtk/vtk/-/issues/17144<https://urldefense.com/v3/__https:/gitlab.kitware.com/vtk/vtk/-/issues/17144__;!!Mak6IKo!K6V-V3qPwotZ3fPFbZHncRqyDnLeY3efvZRulwVx7JQ4a1I0hG9wTvxig7vdHKu3oLtDgWtMSX6n5NiXMw$>.
 Could this be resolved similarly as well?

Thanks,
Haifei
--
You received this message because you are subscribed to the Google Groups 
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/de360c23-90d7-4445-aff3-dc2818288f66n%40googlegroups.com<https://urldefense.com/v3/__https:/groups.google.com/d/msgid/projectchrono/de360c23-90d7-4445-aff3-dc2818288f66n*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Mak6IKo!K6V-V3qPwotZ3fPFbZHncRqyDnLeY3efvZRulwVx7JQ4a1I0hG9wTvxig7vdHKu3oLtDgWtMSX70dTNRfA$>.

-- 
You received this message because you are subscribed to the Google Groups 
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/CH3PPF46CDC2185842009836AC63014A35FA7622%40CH3PPF46CDC2185.namprd06.prod.outlook.com.

Reply via email to