Menu

#112 Compiling on OS X 10.9.x with Clang

cppcms-v1.0.x
closed
None
1
2014-10-30
2014-02-21
Shun Yu
No

Hi I encountered a problem compiling the program on OS X 10.9.1.

The error message:

In file included from /Users/user/Documents/temp/cppcms-1.0.4/src/cache_storage.cpp:34:
/Users/user/Documents/temp/cppcms-1.0.4/cppcms_boost/cppcms_boost/unordered/unordered_map.hpp:207:28: error: no type named 'initializer_list' in namespace 'std'
unordered_map(std::initializer_list<value_type> list,</value_type>

according to this StackOverflow post: http://stackoverflow.com/questions/10991274/initializer-list-in-clang, it's because I needed to supply -std=c++0x to the compiler flags.
After I added the flag to the compiler flags, the compilation proceeded to work.

Maybe we need a fix for this?

my clang --version output:
$ clang --version
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix

Discussion

  • Artyom Beilis

    Artyom Beilis - 2014-05-23

    The cppcms_boost::unordered_map isn't in use any more for the future version - so in trunk it isn't a problem.

    So I need to think how to fix it - because it is the code of the older boost version

     
  • Artyom Beilis

    Artyom Beilis - 2014-05-23
    • status: open --> accepted
    • assigned_to: Artyom Beilis
     
  • Artyom Beilis

    Artyom Beilis - 2014-10-29

    Already fixed in v1.0.x branch

     
  • Artyom Beilis

    Artyom Beilis - 2014-10-29
    • status: accepted --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





Auth0 Logo