SHARE
TWEET

AddressBookXML2 Compile Fail with GCC 4.9.1-2 -std=c++11

a guest Oct 11th, 2014 243 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ----- CtrlLib ( GUI GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (1 / 10)
  2. ----- Report ( GUI GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (2 / 10)
  3. ----- CtrlCore ( GUI GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (3 / 10)
  4. ----- PdfDraw ( GUI GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (4 / 10)
  5. ----- Draw ( GUI GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (5 / 10)
  6. ----- plugin/bmp ( GUI GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (6 / 10)
  7. ----- RichText ( GUI GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (7 / 10)
  8. ----- Core ( GUI GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (8 / 10)
  9. ----- plugin/png ( GUI GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (9 / 10)
  10. ----- AddressBookXML2 ( GUI MAIN GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (10 / 10)
  11. AddressBook.cpp
  12. In file included from /home/*CENSORED*/upp/uppsrc/Core/Callback.h:6:0,
  13.                  from /home/*CENSORED*/upp/uppsrc/Core/Core.h:304,
  14.                  from /home/*CENSORED*/upp/uppsrc/Draw/Draw.h:6,
  15.                  from /home/*CENSORED*/upp/uppsrc/RichText/RichText.h:4,
  16.                  from /home/*CENSORED*/upp/uppsrc/CtrlCore/CtrlCore.h:4,
  17.                  from /home/*CENSORED*/upp/uppsrc/CtrlLib/CtrlLib.h:4,
  18.                  from /home/*CENSORED*/upp/examples/AddressBookXML2/AddressBook.cpp:1:
  19. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:37:7: error: ‘function’ in namespace ‘std’ does not name a template type
  20.   std::function<void ()> fn;
  21.        ^
  22. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:40:30: error: expected ‘)’ before ‘<’ token
  23.   LambdaCallback(std::function<void ()> fn) : fn(fn) {}
  24.                               ^
  25. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h: In member function ‘virtual void Upp::LambdaCallback::Execute()’:
  26. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:38:30: error: ‘fn’ was not declared in this scope
  27.   virtual void Execute() { fn(); }
  28.                               ^
  29. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h: At global scope:
  30. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:95:7: error: ‘function’ in namespace ‘std’ does not name a template type
  31.   std::function<void (P1)> fn;
  32.        ^
  33. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:98:31: error: expected ‘)’ before ‘<’ token
  34.   LambdaCallback1(std::function<void (P1)> fn) : fn(fn) {}
  35.                                ^
  36. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:175:7: error: ‘function’ in namespace ‘std’ does not name a template type
  37.   std::function<void (P1, P2)> fn;
  38.        ^
  39. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:178:31: error: expected ‘)’ before ‘<’ token
  40.   LambdaCallback2(std::function<void (P1, P2)> fn) : fn(fn) {}
  41.                                ^
  42. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:256:7: error: ‘function’ in namespace ‘std’ does not name a template type
  43.   std::function<void (P1, P2, P3)> fn;
  44.        ^
  45. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:259:31: error: expected ‘)’ before ‘<’ token
  46.   LambdaCallback3(std::function<void (P1, P2, P3)> fn) : fn(fn) {}
  47.                                ^
  48. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:337:7: error: ‘function’ in namespace ‘std’ does not name a template type
  49.   std::function<void (P1, P2, P3, P4)> fn;
  50.        ^
  51. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:340:31: error: expected ‘)’ before ‘<’ token
  52.   LambdaCallback4(std::function<void (P1, P2, P3, P4)> fn) : fn(fn) {}
  53.                                ^
  54. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:415:7: error: ‘function’ in namespace ‘std’ does not name a template type
  55.   std::function<bool ()> fn;
  56.        ^
  57. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:418:26: error: expected ‘)’ before ‘<’ token
  58.   LambdaGate(std::function<bool ()> fn) : fn(fn) {}
  59.                           ^
  60. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h: In member function ‘virtual bool Upp::LambdaGate::Execute()’:
  61. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:416:37: error: ‘fn’ was not declared in this scope
  62.   virtual bool Execute() { return fn(); }
  63.                                      ^
  64. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h: At global scope:
  65. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:478:7: error: ‘function’ in namespace ‘std’ does not name a template type
  66.   std::function<bool (P1)> fn;
  67.        ^
  68. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:481:27: error: expected ‘)’ before ‘<’ token
  69.   LambdaGate1(std::function<bool (P1)> fn) : fn(fn) {}
  70.                            ^
  71. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:566:7: error: ‘function’ in namespace ‘std’ does not name a template type
  72.   std::function<bool (P1, P2)> fn;
  73.        ^
  74. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:569:27: error: expected ‘)’ before ‘<’ token
  75.   LambdaGate2(std::function<bool (P1, P2)> fn) : fn(fn) {}
  76.                            ^
  77. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:653:7: error: ‘function’ in namespace ‘std’ does not name a template type
  78.   std::function<bool (P1, P2, P3)> fn;
  79.        ^
  80. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:656:27: error: expected ‘)’ before ‘<’ token
  81.   LambdaGate3(std::function<bool (P1, P2, P3)> fn) : fn(fn) {}
  82.                            ^
  83. In file included from /home/*CENSORED*/upp/uppsrc/Core/Callback.h:6:0,
  84.                  from /home/*CENSORED*/upp/uppsrc/Core/Core.h:304,
  85.                  from /home/*CENSORED*/upp/uppsrc/Draw/Draw.h:6,
  86.                  from /home/*CENSORED*/upp/uppsrc/RichText/RichText.h:4,
  87.                  from /home/*CENSORED*/upp/uppsrc/CtrlCore/CtrlCore.h:4,
  88.                  from /home/*CENSORED*/upp/uppsrc/CtrlLib/CtrlLib.h:4,
  89.                  from /home/*CENSORED*/upp/examples/AddressBookXML2/AddressBook.cpp:1:
  90. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:739:7: error: ‘function’ in namespace ‘std’ does not name a template type
  91.   std::function<bool (P1, P2, P3, P4)> fn;
  92.        ^
  93. /home/*CENSORED*/upp/uppsrc/Core/Cbgen.h:742:27: error: expected ‘)’ before ‘<’ token
  94.   LambdaGate4(std::function<bool (P1, P2, P3, P4)> fn) : fn(fn) {}
  95.                            ^
  96. AddressBookXML2: 1 file(s) built in (0:02.11), 2118 msecs / file, duration = 2120 msecs, parallelization 0%
  97.  
  98. There were errors. (0:03.68)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top