The Global Archicad Community

Stay informed. Get help. Share your knowledge.

Discussions about using GRAPHISOFT's tools (Archicad API, BIMx API, BIMcloud API) for independent software developers

Moderators: Karl Ottenstein, LaszloNagy, ejrolon, Barry Kelly, gkmethy, rmasaki, MOREH Tamas, Akos Somorjai, Ed Brown, Mihály Palenik, Tibor Lorántfy

By abrakadabra
#307712
Hello,

I got error message below while I compiled my code.

Error C2872 'Geometry': ambiguous symbol ...\acwin23.3006\modules\geometry\vector3d.hpp 403

The problematic piece of code is the following in vector3d.hpp

template<typename Coordinate>
bool Geometry::Vector3<Coordinate>::IsNear (const Vector3& c, double eps /*= SmallEps*/) const
{
return (*this - c).GetLengthSqr () < eps * eps;
}

Is it necessary define "Geometry" namespace even when you are "namespace Geometry {...}" ?

It collide my piece of code which I do not want to change unless it is absolutely necessary.

As a workaround I have deleted "Geometry::", but I am not sure whether it cause any trouble elsewhere in your code.

Regards