Grégoire MERCIER <[email protected]> wrote:
> 
> Dear Christophe,
>
> Thank you for the suggestion: -std=c++0x was the key.

Hi all,

-std=c++0x is the flag for C++ used before the official c++11 standard was 
released. With recent compilers, the flag is -std=c++11.

Does this mean that for building OTB a compiler supporting c++11 is needed? 


Jordi

>
> All the best
> Greg
>
> ----------------------------------------------------------------------
>
>     De: "Christophe Palmann" <[email protected]>
>     À: [email protected]
>     Envoyé: Mercredi 4 Mars 2015 15:54:26
>     Objet: [otb-users] Re: OTB4.4 compilation error on macOS
>
>     Hi Grégoire,
>
>     there are two "pseudo-fixes" about this error:
>     1) add "-std=c++0x" to the cmake variable "CMAKE_CXX_FLAGS"
>     2) or go to the src directory of muparserx, find the file
>     "mpCompat.h", and manually change it so that "override",
>     "unique_ptr", "nullptr" won't be redefined (clang seems to accept
>     these keywords even if c++0x standard isn't used).
>
>     A much better fix will be available with the next release
>     (actually, it is already available from the trunk; but "OTB 4.5"
>     isn't totally ready for Yosemite).
>
>     Hope this will help (tell us),
>     Christophe.
>
>     Le mardi 3 mars 2015 19:46:54 UTC+1, Greg a écrit :
>
>         Dear all, 
>
>         I am trying to compile OTB 4.4.0 on macOS Yosemite. 
>         I do not understand the following error 
>
>         Scanning dependencies of target otbmuparserx 
>         [ 82%] Building CXX object
>         Utilities/otbmuparserx/CMakeFiles/otbmuparserx.dir/mpError.cpp.o
>         
>         In file included from
>         
> /Users/gregoiremercier/otb/otb-dev/OTB/Utilities/otbmuparserx/mpError.cpp:36:
>         
>         In file included from
>         
> /Users/gregoiremercier/otb/otb-dev/OTB/Utilities/otbmuparserx/mpIToken.h:40:
>         
>         
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/list:1351:5:
>         error: 
>         too many template arguments for class template 'auto_ptr' 
>         unique_ptr<__node, _Dp> __hold(__node_alloc_traits::allocate
>         (__na, 1), _Dp(__na, 1)); 
>
>         my g++ is : 
>         Configured with: -
>         -prefix=/Applications/Xcode.app/Contents/Developer/usr -
>         -with-gxx-include-dir=/usr/include/c++/4.2.1 
>         Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
>         Target: x86_64-apple-darwin14.1.0 
>         Thread model: posix 
>
>         Any idea? 
>         Thanks 
>         Greg 
>
>         -- 
>         ************************************************** 
>         Institut Mines-Telecom / Telecom Bretagne 
>         CNRS UMR 6285 Lab-STICC, equipe CID 
>         Technopole Brest-Iroise; CS 83818; 
>         F-29238 Brest cedex - France 
>         Tel : +33 (0)2 29 00 10 59 
>         Fax : +33 (0)2 29 00 10 98 
>         ************************************************* 
>
>     -- 
>     -- 
>     Check the OTB FAQ at
>     http://www.orfeo-toolbox.org/FAQ.html
>
>     You received this message because you are subscribed to the Google
>     Groups "otb-users" group.
>     To post to this group, send email to [email protected]
>     To unsubscribe from this group, send email to
>     [email protected]
>     For more options, visit this group at
>     http://groups.google.com/group/otb-users?hl=en
>     --- 
>     You received this message because you are subscribed to the Google
>     Groups "otb-users" group.
>     To unsubscribe from this group and stop receiving emails from it,
>     send an email to [email protected].
>     For more options, visit https://groups.google.com/d/optout.
>
> -- 

-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to