You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apple clang version 11.0.3 (clang-1103.0.32.59)
Target: x86_64-apple-darwin19.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
I have the following error :
[0] % make run
c++ -Isrc -Wall -Werror -Wpedantic -DTRAKO_CONFIG_WARNING=0 -c -o src/main.o src/main.cpp
In file included from src/main.cpp:11:
In file included from src/trako/trako.h:28:
In file included from src/trako/lib.h:27:
In file included from src/trako/MetaClass.h:9:
In file included from src/trako/Duration.h:66:
src/trako/Duration.hpp:36:43: error: expected ';' at end of declaration
unsigned long trako::Duration<T>::mElapsed{0};
^
;
src/trako/Duration.hpp:36:43: error: expected unqualified-id
src/trako/Duration.hpp:55:15: error: expected '('
, mStartTime{}, mStopTime{}
^
src/trako/Duration.hpp:55:17: error: expected unqualified-id
, mStartTime{}, mStopTime{}
^
src/trako/Duration.hpp:239:12: error: expected expression
[prefix](std::pair<char const * const, Duration<>> &item) {
^
src/trako/Duration.hpp:251:7: error: expected expression
= [](std::pair<char const * const, Duration<> > before,
^
src/trako/Duration.hpp:257:56: error: range-based for loop is a C++11 extension [-Werror,-Wc++11-extensions]
for (std::pair<char const * const, Duration<> > item : sortedCollectionSet) {
^
In file included from src/main.cpp:11:
In file included from src/trako/trako.h:28:
In file included from src/trako/lib.h:27:
src/trako/MetaClass.h:56:38: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
MetaClass(const MetaClass<T>&) = delete;
^
src/trako/MetaClass.h:57:48: error: deleted function definitions are a C++11 extension [-Werror,-Wc++11-extensions]
MetaClass operator=(const MetaClass<T>&) = delete;
^
In file included from src/main.cpp:11:
In file included from src/trako/trako.h:28:
In file included from src/trako/lib.h:27:
In file included from src/trako/MetaClass.h:72:
In file included from src/trako/MetaClass.hpp:13:
In file included from src/trako/Context.h:54:
src/trako/Context.hpp:27:21: error: expected '('
: mClassCollection{}
^
src/trako/Context.hpp:28:1: error: expected unqualified-id
{
^
src/trako/Context.hpp:60:22: error: 'mCollection' is a protected member of 'trako::Duration<void>'
return Duration<>::mCollection;
^
src/trako/Duration.h:62:54: note: declared protected here
static std::map<char const * const, Duration<> > mCollection;
^
In file included from src/main.cpp:11:
In file included from src/trako/trako.h:28:
In file included from src/trako/lib.h:27:
In file included from src/trako/MetaClass.h:72:
src/trako/MetaClass.hpp:30:14: error: expected '('
mDuration{}
^
src/trako/MetaClass.hpp:31:1: error: expected unqualified-id
{
^
src/main.cpp:37:3: error: function definition does not declare parameters
EXAMPLE_TRAKO(CLASS(MyClass)); /// trako: meta object is injected here for monitoring instances
^
src/main.cpp:15:3: note: expanded from macro 'EXAMPLE_TRAKO'
TRAKO(arg) ///< trako:: Wrap to TRAKO macro to avoid spreading TRACO macro into example
^
src/trako/lib.h:34:3: note: expanded from macro 'TRAKO'
TRAKO_##CMD
^
<scratch space>:341:1: note: expanded from here
TRAKO_CLASS
^
src/trako/lib.h:44:35: note: expanded from macro 'TRAKO_CLASS'
private: trako::MetaClass<type> mTrakoMetaClass_{} /*<! TrakO */ \
^
src/main.cpp:60:3: error: function definition does not declare parameters
EXAMPLE_TRAKO(CLASS(MyOtherClass)); //<! Same as MyClass, note the type as argument
^
src/main.cpp:15:3: note: expanded from macro 'EXAMPLE_TRAKO'
TRAKO(arg) ///< trako:: Wrap to TRAKO macro to avoid spreading TRACO macro into example
^
src/trako/lib.h:34:3: note: expanded from macro 'TRAKO'
TRAKO_##CMD
^
<scratch space>:354:1: note: expanded from here
TRAKO_CLASS
^
src/trako/lib.h:44:35: note: expanded from macro 'TRAKO_CLASS'
private: trako::MetaClass<type> mTrakoMetaClass_{} /*<! TrakO */ \
^
src/main.cpp:84:13: error: unused variable 'nested' [-Werror,-Wunused-variable]
MyClass nested;
^
src/main.cpp:94:20: error: unused variable 'myOther' [-Werror,-Wunused-variable]
MyOtherClass myOther;
^
src/main.cpp:122:18: error: unused variable 'local' [-Werror,-Wunused-variable]
MyOtherClass local;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [src/main.o] Error 1
The text was updated successfully, but these errors were encountered:
Hi,
with mac os 10.15
I have the following error :
The text was updated successfully, but these errors were encountered: