This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
SketchAnalysis.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::RtPnt" (?RtPnt@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
SketchAnalysis.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::HAxis" (?HAxis@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
SketchAnalysis.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::VAxis" (?VAxis@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
AppSketcher.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::RtPnt" (?RtPnt@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
ExternalGeometryFacadePyImp.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::RtPnt" (?RtPnt@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
ExternalGeometryFacadePyImp.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::HAxis" (?HAxis@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
ExternalGeometryFacadePyImp.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::VAxis" (?VAxis@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
ConstraintPyImp.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::RtPnt" (?RtPnt@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
ConstraintPyImp.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::HAxis" (?HAxis@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
ConstraintPyImp.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::VAxis" (?VAxis@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
SketchPyImp.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::RtPnt" (?RtPnt@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
SketchPyImp.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::HAxis" (?HAxis@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
SketchPyImp.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::VAxis" (?VAxis@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
PropertyConstraintList.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::RtPnt" (?RtPnt@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
PropertyConstraintList.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::HAxis" (?HAxis@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
PropertyConstraintList.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::VAxis" (?VAxis@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
Constraint.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::RtPnt" (?RtPnt@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
Constraint.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::HAxis" (?HAxis@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
Constraint.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::VAxis" (?VAxis@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
Sketch.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::RtPnt" (?RtPnt@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
Sketch.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::HAxis" (?HAxis@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
Sketch.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::VAxis" (?VAxis@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
GeoList.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::RtPnt" (?RtPnt@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
GeoList.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::HAxis" (?HAxis@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
GeoList.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::VAxis" (?VAxis@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
GeoEnum.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::RtPnt" (?RtPnt@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
GeoEnum.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::HAxis" (?HAxis@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
GeoEnum.cpp.obj : error LNK2005: "public: static class Sketcher::GeoElementId const Sketcher::GeoElementId::VAxis" (?VAxis@GeoElementId@Sketcher@@2V12@B) already defined in SketchObject.cpp.obj
Maybe it's related to using -D FREECAD_USE_PCH:BOOL=OFF for these builds.
looo wrote: ↑Mon Jan 17, 2022 10:54 am
Conda uses msvc for windows to build freecad.
Is a Conda build "clean"? I had an issue last week that required me to do a from-scratch rebuild on Visual Studio -- I don't recall the exact error, but it was related to something in Sketcher.
looo wrote: ↑Mon Jan 17, 2022 10:54 am
Conda uses msvc for windows to build freecad.
Is a Conda build "clean"? I had an issue last week that required me to do a from-scratch rebuild on Visual Studio -- I don't recall the exact error, but it was related to something in Sketcher.
I would have assumed that it's a compiler bug because it's working with so many compilers and it's perfectly valid C++ code. But now that Gene said he uses the exact same compiler version and for him it works then I guess something must be wrong with the object files from a previous build.
conda does a full rebuild, no caching.
Not using a cache is not the same as doing a clean rebuild. So, let me rephrase the question: are you sure that between two builds all object files (*.obj) are deleted?