bedotalha / b-tk

Automatically exported from code.google.com/p/b-tk
0 stars 0 forks source link

Mokka compilation on OSX: error: default arguments cannot be added to an out-of-line definition #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Get the bleeding edge from subversion
2. Added VTK5.10.1 and configured using cmake
3. Installed QT 4.8.3 toolchain
4. run cmake and configure to build juist the BTK_TOOLS using BTK_VIS and 
BTK_VTK
5. configure + generate using cmake GUI
6. run make from command line

MultiUnlabeledOpt.h:58:80: error: default arguments
      cannot be added to an out-of-line definition of a member of a class template

UnlabeledOpt.h:59:70: error: default arguments
      cannot be added to an out-of-line definition of a member of a class template

7. I temporarily removed the default value for the booleans in both headers, 
which solves the issue. Not sure what issues it might cause, though.

What is the expected output? What do you see instead?
Mokka compiling successfully

What version of the product are you using? On what operating system?
r1390 OSX 10.7.4 64bit, i686-apple-darwin11-llvm-gcc-4.2:

Please provide any additional information below.

Original issue reported on code.google.com by jeroen.p...@gmail.com on 28 Nov 2012 at 11:15

Attachments:

GoogleCodeExporter commented 8 years ago
The revision r1391 should fix this issue. Note: this issue is related to the 
(new) Apple compiler (Clang) which is less flexible than GCC on some rules of 
the C++ standard.

Original comment by arnaud.barre on 29 Nov 2012 at 6:25

GoogleCodeExporter commented 8 years ago
Ok thanks, I updated the source and the compile error is gone now

Original comment by jeroen.p...@gmail.com on 29 Nov 2012 at 9:16

GoogleCodeExporter commented 8 years ago

Original comment by arnaud.barre on 29 Nov 2012 at 7:46