Skip to content

compiler error on mingw-64 #201

Description

@arc130

Hi, I built on mingw-64 version 7.3.0 and got error on target-link step. How can I solve this?

depend/BehaviorTree.CPP/libbehaviortree_cpp_v3d.a(decorator_node.cpp.obj): In function `BT::DecoratorNode::halt()':
E:/Download/Groot/depend/BehaviorTree.CPP/src/decorator_node.cpp:33: multiple definition of `BT::DecoratorNode::halt()'
libbehavior_tree_editor.dll.a(d000941.o):(.text+0x0): first defined here
depend/BehaviorTree.CPP/libbehaviortree_cpp_v3d.a(decorator_node.cpp.obj): In function `BT::DecoratorNode::executeTick()':
E:/Download/Groot/depend/BehaviorTree.CPP/src/decorator_node.cpp:72: multiple definition of `BT::DecoratorNode::executeTick()'
libbehavior_tree_editor.dll.a(d000940.o):(.text+0x0): first defined here
depend/BehaviorTree.CPP/libbehaviortree_cpp_v3d.a(tree_node.cpp.obj): In function `BT::TreeNode::setStatus(BT::NodeStatus)':
E:/Download/Groot/depend/BehaviorTree.CPP/src/tree_node.cpp:64: multiple definition of `BT::TreeNode::setStatus(BT::NodeStatus)'
libbehavior_tree_editor.dll.a(d001337.o):(.text+0x0): first defined here
depend/BehaviorTree.CPP/libbehaviortree_cpp_v3d.a(tree_node.cpp.obj): In function `BT::TreeNode::status() const':
E:/Download/Groot/depend/BehaviorTree.CPP/src/tree_node.cpp:86: multiple definition of `BT::TreeNode::status() const'
libbehavior_tree_editor.dll.a(d003578.o):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[2]: *** [CMakeFiles\Groot.dir\build.make:268: Groot.exe] Error 1
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:203: CMakeFiles/Groot.dir/all] Error 2
mingw32-make.exe[1]: *** Waiting for unfinished jobs....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions