In file included from file.cpp:21: In file included from ./file.h:32: ./common.h:19:15: warning: variadic templates are a C++11 extension [-Wc++11-extensions] template ^ ./common.h:20:15: warning: rvalue references are a C++11 extension [-Wc++11-extensions] void logg(Args&&... args){ ^ ./common.h:22:18: warning: alias declarations are a C++11 extension [-Wc++11-extensions] using creator = int[]; // dummy ^ ./common.h:23:9: error: expected unqualified-id creator{ 0, ( std::cout << (std::forward(args)), 0) ... }; ^ ./common.h:29:15: warning: variadic templates are a C++11 extension [-Wc++11-extensions] template ^ ./common.h:30:26: warning: rvalue references are a C++11 extension [-Wc++11-extensions] void logg(LogMode m, Args&&... x){ ^ ./common.h:62:42: error: non-aggregate type 'const std::map' (aka 'const map, allocator >, basic_string, allocator > >') cannot be initialized with an initializer list const std::map g_atom_names = { ^ ~ In file included from file.cpp:21: ./file.h:41:12: error: unknown type name 'off64_t'; did you mean 'off_t'? void seek(off64_t p); ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from file.cpp:21: ./file.h:42:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t pos(); ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from file.cpp:21: ./file.h:44:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t length() { return size_; } ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from file.cpp:21: ./file.h:56:20: error: unknown type name 'off64_t'; did you mean 'off_t'? size_t fillBuffer(off64_t location); ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from file.cpp:21: ./file.h:58:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t size_; ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from file.cpp:21: ./file.h:60:20: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions] ssize_t buf_size_ = 15*(1<<20); // 15 MB ^ ./file.h:61:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t buf_begin_; ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from file.cpp:21: ./file.h:62:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t buf_off_; ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from file.cpp:21: ./file.h:71:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t pos(); ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ file.cpp:69:21: error: unknown type name 'off64_t'; did you mean 'off_t'? void FileRead::seek(off64_t p) { ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ file.cpp:76:1: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t FileRead::pos() { ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ file.cpp:84:29: error: unknown type name 'off64_t'; did you mean 'off_t'? size_t FileRead::fillBuffer(off64_t location) { ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ file.cpp:85:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t avail = (buf_begin_+buf_size_) - location; ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ file.cpp:86:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t buf_loc = location - buf_begin_; ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ file.cpp:178:1: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t FileWrite::pos() { ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ 6 warnings and 16 errors generated. main.cpp:24:10: fatal error: 'libavutil/ffversion.h' file not found #include "libavutil/ffversion.h" ^~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. In file included from track.cpp:21: In file included from ./track.h:27: In file included from ./codec.h:7: ./common.h:19:15: warning: variadic templates are a C++11 extension [-Wc++11-extensions] template ^ ./common.h:20:15: warning: rvalue references are a C++11 extension [-Wc++11-extensions] void logg(Args&&... args){ ^ ./common.h:22:18: warning: alias declarations are a C++11 extension [-Wc++11-extensions] using creator = int[]; // dummy ^ ./common.h:23:9: error: expected unqualified-id creator{ 0, ( std::cout << (std::forward(args)), 0) ... }; ^ ./common.h:29:15: warning: variadic templates are a C++11 extension [-Wc++11-extensions] template ^ ./common.h:30:26: warning: rvalue references are a C++11 extension [-Wc++11-extensions] void logg(LogMode m, Args&&... x){ ^ ./common.h:62:42: error: non-aggregate type 'const std::map' (aka 'const map, allocator >, basic_string, allocator > >') cannot be initialized with an initializer list const std::map g_atom_names = { ^ ~ In file included from track.cpp:21: In file included from ./track.h:27: ./codec.h:34:18: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions] int n_channels_ = 0; ^ In file included from track.cpp:36: In file included from ./atom.h:10: ./file.h:41:12: error: unknown type name 'off64_t'; did you mean 'off_t'? void seek(off64_t p); ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from track.cpp:36: In file included from ./atom.h:10: ./file.h:42:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t pos(); ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from track.cpp:36: In file included from ./atom.h:10: ./file.h:44:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t length() { return size_; } ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from track.cpp:36: In file included from ./atom.h:10: ./file.h:56:20: error: unknown type name 'off64_t'; did you mean 'off_t'? size_t fillBuffer(off64_t location); ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from track.cpp:36: In file included from ./atom.h:10: ./file.h:58:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t size_; ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from track.cpp:36: In file included from ./atom.h:10: ./file.h:60:20: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions] ssize_t buf_size_ = 15*(1<<20); // 15 MB ^ ./file.h:61:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t buf_begin_; ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from track.cpp:36: In file included from ./atom.h:10: ./file.h:62:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t buf_off_; ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from track.cpp:36: In file included from ./atom.h:10: ./file.h:71:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t pos(); ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ track.cpp:193:6: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] for(auto time : times_) ^ track.cpp:193:16: warning: range-based for loop is a C++11 extension [-Wc++11-extensions] for(auto time : times_) ^ track.cpp:304:21: error: a space is required between consecutive right angle brackets (use '> >') vector> vp; ^~ > > track.cpp:307:7: error: no member named 'emplace_back' in 'std::__1::vector, std::__1::allocator > >' vp.emplace_back(1, times_[i]); ~~ ^ track.cpp:316:6: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] for(auto p : vp) { ^ track.cpp:316:13: warning: range-based for loop is a C++11 extension [-Wc++11-extensions] for(auto p : vp) { ^ 11 warnings and 12 errors generated. In file included from atom.cpp:2: In file included from ./atom.h:9: ./common.h:19:15: warning: variadic templates are a C++11 extension [-Wc++11-extensions] template ^ ./common.h:20:15: warning: rvalue references are a C++11 extension [-Wc++11-extensions] void logg(Args&&... args){ ^ ./common.h:22:18: warning: alias declarations are a C++11 extension [-Wc++11-extensions] using creator = int[]; // dummy ^ ./common.h:23:9: error: expected unqualified-id creator{ 0, ( std::cout << (std::forward(args)), 0) ... }; ^ ./common.h:29:15: warning: variadic templates are a C++11 extension [-Wc++11-extensions] template ^ ./common.h:30:26: warning: rvalue references are a C++11 extension [-Wc++11-extensions] void logg(LogMode m, Args&&... x){ ^ ./common.h:62:42: error: non-aggregate type 'const std::map' (aka 'const map, allocator >, basic_string, allocator > >') cannot be initialized with an initializer list const std::map g_atom_names = { ^ ~ In file included from atom.cpp:2: In file included from ./atom.h:10: ./file.h:41:12: error: unknown type name 'off64_t'; did you mean 'off_t'? void seek(off64_t p); ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from atom.cpp:2: In file included from ./atom.h:10: ./file.h:42:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t pos(); ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from atom.cpp:2: In file included from ./atom.h:10: ./file.h:44:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t length() { return size_; } ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from atom.cpp:2: In file included from ./atom.h:10: ./file.h:56:20: error: unknown type name 'off64_t'; did you mean 'off_t'? size_t fillBuffer(off64_t location); ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from atom.cpp:2: In file included from ./atom.h:10: ./file.h:58:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t size_; ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from atom.cpp:2: In file included from ./atom.h:10: ./file.h:60:20: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions] ssize_t buf_size_ = 15*(1<<20); // 15 MB ^ ./file.h:61:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t buf_begin_; ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from atom.cpp:2: In file included from ./atom.h:10: ./file.h:62:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t buf_off_; ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from atom.cpp:2: In file included from ./atom.h:10: ./file.h:71:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t pos(); ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ atom.cpp:326:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t start = output.pos(); ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ atom.cpp:332:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t offset = file_begin_; ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ atom.cpp:349:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t end = output.pos(); ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ 6 warnings and 13 errors generated. In file included from mp4.cpp:32: In file included from ./mp4.h:28: In file included from ./track.h:27: In file included from ./codec.h:7: ./common.h:19:15: warning: variadic templates are a C++11 extension [-Wc++11-extensions] template ^ ./common.h:20:15: warning: rvalue references are a C++11 extension [-Wc++11-extensions] void logg(Args&&... args){ ^ ./common.h:22:18: warning: alias declarations are a C++11 extension [-Wc++11-extensions] using creator = int[]; // dummy ^ ./common.h:23:9: error: expected unqualified-id creator{ 0, ( std::cout << (std::forward(args)), 0) ... }; ^ ./common.h:29:15: warning: variadic templates are a C++11 extension [-Wc++11-extensions] template ^ ./common.h:30:26: warning: rvalue references are a C++11 extension [-Wc++11-extensions] void logg(LogMode m, Args&&... x){ ^ ./common.h:62:42: error: non-aggregate type 'const std::map' (aka 'const map, allocator >, basic_string, allocator > >') cannot be initialized with an initializer list const std::map g_atom_names = { ^ ~ In file included from mp4.cpp:32: In file included from ./mp4.h:28: In file included from ./track.h:27: ./codec.h:34:18: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions] int n_channels_ = 0; ^ In file included from mp4.cpp:32: ./mp4.h:59:21: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions] bool broken_is_64_ = false; ^ ./mp4.h:60:22: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions] int unknown_length_ = 0; ^ In file included from mp4.cpp:33: In file included from ./atom.h:10: ./file.h:41:12: error: unknown type name 'off64_t'; did you mean 'off_t'? void seek(off64_t p); ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from mp4.cpp:33: In file included from ./atom.h:10: ./file.h:42:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t pos(); ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from mp4.cpp:33: In file included from ./atom.h:10: ./file.h:44:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t length() { return size_; } ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from mp4.cpp:33: In file included from ./atom.h:10: ./file.h:56:20: error: unknown type name 'off64_t'; did you mean 'off_t'? size_t fillBuffer(off64_t location); ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from mp4.cpp:33: In file included from ./atom.h:10: ./file.h:58:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t size_; ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from mp4.cpp:33: In file included from ./atom.h:10: ./file.h:60:20: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions] ssize_t buf_size_ = 15*(1<<20); // 15 MB ^ ./file.h:61:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t buf_begin_; ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from mp4.cpp:33: In file included from ./atom.h:10: ./file.h:62:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t buf_off_; ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ In file included from mp4.cpp:33: In file included from ./atom.h:10: ./file.h:71:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t pos(); ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ mp4.cpp:181:19: warning: range-based for loop is a C++11 extension [-Wc++11-extensions] for(Track& track : tracks_) { ^ mp4.cpp:201:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto x = div(bmsec, 1000); msec = x.rem; sec = x.quot; ^ mp4.cpp:216:8: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] for (auto n : unknown_lengths_) bytes_not_matched += n; ^ mp4.cpp:216:15: warning: range-based for loop is a C++11 extension [-Wc++11-extensions] for (auto n : unknown_lengths_) bytes_not_matched += n; ^ mp4.cpp:277:4: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t offset; ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ mp4.cpp:295:15: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] for (const auto& t : tracks_) ^ mp4.cpp:295:23: warning: range-based for loop is a C++11 extension [-Wc++11-extensions] for (const auto& t : tracks_) ^ mp4.cpp:401:2: error: unknown type name 'off64_t'; did you mean 'off_t'? off64_t offset = 0; ^~~~~~~ off_t /usr/include/sys/_types/_off_t.h:31:25: note: 'off_t' declared here typedef __darwin_off_t off_t; ^ mp4.cpp:428:21: warning: use of enumeration in a nested name specifier is a C++11 extension [-Wc++11-extensions] if (g_log_mode >= LogMode::V) { ^ mp4.cpp:511:34: warning: use of enumeration in a nested name specifier is a C++11 extension [-Wc++11-extensions] if (!g_muted && g_log_mode < LogMode::V) { ^ mp4.cpp:532:21: error: no member named 'emplace_back' in 'std::__1::vector >'; did you mean '__emplace_back'? unknown_lengths_.emplace_back(unknown_length_); ^~~~~~~~~~~~ __emplace_back /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:679:10: note: '__emplace_back' declared here void __emplace_back(const value_type& __x) { push_back(__x); } ^ mp4.cpp:542:20: error: no member named 'emplace_back' in 'std::__1::vector >'; did you mean '__emplace_back'? unknown_lengths_.emplace_back(unknown_length_); ^~~~~~~~~~~~ __emplace_back /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:679:10: note: '__emplace_back' declared here void __emplace_back(const value_type& __x) { push_back(__x); } ^ mp4.cpp:548:22: warning: range-based for loop is a C++11 extension [-Wc++11-extensions] for(const Track& t : tracks_){ ^ mp4.cpp:556:6: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] for(auto& track : tracks_) { ^ mp4.cpp:556:18: warning: range-based for loop is a C++11 extension [-Wc++11-extensions] for(auto& track : tracks_) { ^ 20 warnings and 14 errors generated.