Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on Mac Os 10.15 #2

Open
scampion opened this issue Jul 10, 2020 · 1 comment
Open

Issue on Mac Os 10.15 #2

scampion opened this issue Jul 10, 2020 · 1 comment

Comments

@scampion
Copy link

Hi,
with mac os 10.15

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
rzr added a commit that referenced this issue Jul 11, 2020
Relate-to: #2
Signed-off-by: Philippe Coval <rzr@users.sf.net>
Change-Id: Ic2c125365eef85337211aefa1d892d4a53bf3876
@rzr
Copy link
Owner

rzr commented Apr 29, 2021

Please confirm it's working fine and close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants