Author Topic: Current git - Build Error in Pathfinding.cpp (Archlinux 64 bit)  (Read 9021 times)

anonilsus

  • Guest
Current git - Build Error in Pathfinding.cpp (Archlinux 64 bit)
« on: January 28, 2013, 03:22:34 pm »
Code: [Select]
[ 17%] Building CXX object src/CMakeFiles/openxcom.dir/Battlescape/Pathfinding.cpp.o
/var/abs/local/yaourtbuild/openxcom-git/src/OpenXcom-build/src/Battlescape/Position.cpp: In function 'void OpenXcom::operator>>(const YAML::Node&, OpenXcom::Position&)':
/var/abs/local/yaourtbuild/openxcom-git/src/OpenXcom-build/src/Battlescape/Position.cpp:27:17: error: no match for 'operator>>' in 'YAML::Node::operator[](const Key&) const [with Key = int]((* &0)) >> pos.OpenXcom::Position::x'
/var/abs/local/yaourtbuild/openxcom-git/src/OpenXcom-build/src/Battlescape/Position.cpp:27:17: note: candidate is:
/var/abs/local/yaourtbuild/openxcom-git/src/OpenXcom-build/src/Battlescape/Position.cpp:25:6: note: void OpenXcom::operator>>(const YAML::Node&, OpenXcom::Position&)
/var/abs/local/yaourtbuild/openxcom-git/src/OpenXcom-build/src/Battlescape/Position.cpp:25:6: note:   no known conversion for argument 2 from 'int' to 'OpenXcom::Position&'
/var/abs/local/yaourtbuild/openxcom-git/src/OpenXcom-build/src/Battlescape/Position.cpp:28:17: error: no match for 'operator>>' in 'YAML::Node::operator[](const Key&) const [with Key = int]((* &1)) >> pos.OpenXcom::Position::y'
/var/abs/local/yaourtbuild/openxcom-git/src/OpenXcom-build/src/Battlescape/Position.cpp:28:17: note: candidate is:
/var/abs/local/yaourtbuild/openxcom-git/src/OpenXcom-build/src/Battlescape/Position.cpp:25:6: note: void OpenXcom::operator>>(const YAML::Node&, OpenXcom::Position&)
/var/abs/local/yaourtbuild/openxcom-git/src/OpenXcom-build/src/Battlescape/Position.cpp:25:6: note:   no known conversion for argument 2 from 'int' to 'OpenXcom::Position&'
/var/abs/local/yaourtbuild/openxcom-git/src/OpenXcom-build/src/Battlescape/Position.cpp:29:17: error: no match for 'operator>>' in 'YAML::Node::operator[](const Key&) const [with Key = int]((* &2)) >> pos.OpenXcom::Position::z'
/var/abs/local/yaourtbuild/openxcom-git/src/OpenXcom-build/src/Battlescape/Position.cpp:29:17: note: candidate is:
/var/abs/local/yaourtbuild/openxcom-git/src/OpenXcom-build/src/Battlescape/Position.cpp:25:6: note: void OpenXcom::operator>>(const YAML::Node&, OpenXcom::Position&)
/var/abs/local/yaourtbuild/openxcom-git/src/OpenXcom-build/src/Battlescape/Position.cpp:25:6: note:   no known conversion for argument 2 from 'int' to 'OpenXcom::Position&'
make[2]: *** [src/CMakeFiles/openxcom.dir/Battlescape/Position.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/CMakeFiles/openxcom.dir/all] Error 2
make: *** [all] Error 2

anonilsus

  • Guest
Re: Current git - Build Error in Pathfinding.cpp (Archlinux 64 bit)
« Reply #1 on: January 28, 2013, 05:50:40 pm »
It was YAML 0.5.0 vs. 0.3.0
Maybe configure could test for that.

Offline kkmic

  • Commander
  • *****
  • Posts: 582
  • Undefined
    • View Profile
Re: Current git - Build Error in Pathfinding.cpp (Archlinux 64 bit)
« Reply #2 on: January 30, 2013, 11:49:51 am »
I got the same issue, but it seems that it has been fixed.

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2159
    • View Profile
Re: Current git - Build Error in Pathfinding.cpp (Archlinux 64 bit)
« Reply #3 on: January 30, 2013, 08:09:35 pm »
Hope I did it right, I'm not too familiar with configure scripts. :)

Offline Fenyő

  • Colonel
  • ****
  • Posts: 423
    • View Profile
Re: Current git - Build (Linking) Error in SavedBattleGame.obj (Visual Studio)
« Reply #4 on: February 11, 2013, 03:21:29 pm »
I can't compile OpenXcom now:
Error   111   error LNK2001: unresolved external symbol "void __cdecl YAML::operator>>(class YAML::Node const &,class YAML::Binary &)" (??5YAML@@YAXABVNode@0@AAVBinary@0@@Z)   OpenXcom\src\SavedBattleGame.obj   OpenXcom

Is this problem only mine? Or is it common?
Any ideas to fix it?

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2159
    • View Profile
Re: Current git - Build Error in Pathfinding.cpp (Archlinux 64 bit)
« Reply #5 on: February 11, 2013, 04:56:33 pm »
I can't compile OpenXcom now:
Error   111   error LNK2001: unresolved external symbol "void __cdecl YAML::operator>>(class YAML::Node const &,class YAML::Binary &)" (??5YAML@@YAXABVNode@0@AAVBinary@0@@Z)   OpenXcom\src\SavedBattleGame.obj   OpenXcom

Is this problem only mine? Or is it common?
Any ideas to fix it?
https://openxcom.org/index.php/2013/02/msvc-dependency-fix/

Offline Fenyő

  • Colonel
  • ****
  • Posts: 423
    • View Profile
Re: Current git - Build Error in Pathfinding.cpp (Archlinux 64 bit)
« Reply #6 on: February 11, 2013, 05:01:58 pm »
Ah!
Thanks a lot!!