Serious compiling issue with ECWolf
I just tried to make a new build of ECWolf on my Mac OS X 10.9. CMake ran fine, except it couldn't find stricmp and strnicmp, but when I tried to make, it gave me some fatal errors. I could build ECBlake just fine a few months ago, but I think that's because that was before the last few lines of actor.h switched from LinkedLists to EmbeddedLists. This is the output from Terminal:
make
[ 8%] Built target lzma
[ 9%] Built target zipdir
[ 10%] Built target updaterevision
[ 10%] Built target arithchk
[ 11%] Built target qnan
[ 33%] Built target gdtoa
/Users/Shared/ECWolf/src/svnrevision.h is up to date at revision 131102-0253.
[ 33%] Built target revision_check
Scanning dependencies of target ecwolf
[ 33%] Building CXX object src/CMakeFiles/ecwolf.dir/g_blake/a_smartanim.o
In file included from /Users/Shared/ECWolf/src/g_blake/a_smartanim.cpp:36:
In file included from /Users/Shared/ECWolf/src/actor.h:41:
/Users/Shared/ECWolf/src/linkedlist.h:60:33: error: no class named 'Iterator' in
'EmbeddedList<T>'
friend class EmbeddedList<T>::Iterator;
~~~~~~~~~~~~~~~~~^
/Users/Shared/ECWolf/src/linkedlist.h:61:33: error: no class named 'ConstIterator' in
'EmbeddedList<T>'
friend class EmbeddedList<T>::ConstIterator;
~~~~~~~~~~~~~~~~~^
/Users/Shared/ECWolf/src/linkedlist.h:62:33: error: no class named 'List' in
'EmbeddedList<T>'
friend class EmbeddedList<T>::List;
~~~~~~~~~~~~~~~~~^
/Users/Shared/ECWolf/src/linkedlist.h:78:38: error: no type named 'List' in
'EmbeddedList<T>'
Iterator(typename EmbeddedList<T>::List &list) :
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/Users/Shared/ECWolf/src/linkedlist.h:127:49: error: no type named 'List' in
'EmbeddedList<T>'
ConstIterator(const typename EmbeddedList<T>::List &list) :
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from /Users/Shared/ECWolf/src/g_blake/a_smartanim.cpp:36:
In file included from /Users/Shared/ECWolf/src/actor.h:44:
/Users/Shared/ECWolf/src/thinker.h:67:59: error: no member named 'Head' in
'EmbeddedList<Thinker>::List'; did you mean 'head'?
Iterator GetHead(Priority list) { return thinkers[list].Head(); }
^~~~
head
/Users/Shared/ECWolf/src/linkedlist.h:263:35: note: 'head' declared here
typename EmbeddedList<T>::Node *head;
^
In file included from /Users/Shared/ECWolf/src/g_blake/a_smartanim.cpp:36:
In file included from /Users/Shared/ECWolf/src/actor.h:44:
/Users/Shared/ECWolf/src/thinker.h:67:63: error: called object type 'typename
EmbeddedList<Thinker>::Node *' is not a function or function pointer
Iterator GetHead(Priority list) { return thinkers[list].Head(); }
~~~~~~~~~~~~~~~~~~~^
In file included from /Users/Shared/ECWolf/src/g_blake/a_smartanim.cpp:36:
/Users/Shared/ECWolf/src/actor.h:75:31: error: expected class name
public EmbeddedList<AActor>::Node
^
/Users/Shared/ECWolf/src/actor.h:187:33: error: no type named 'Iterator' in
'EmbeddedList<AActor>'
typedef EmbeddedList<AActor>::Iterator Iterator;
~~~~~~~~~~~~~~~~~~~~~~^
/Users/Shared/ECWolf/src/actor.h:188:42: error: cannot convert 'EmbeddedList<AActor>::List'
to 'Iterator' (aka 'int') without a conversion operator
static Iterator GetIterator() { return Iterator(actors); }
^~~~~~~~~~~~~~~
In file included from /Users/Shared/ECWolf/src/g_blake/a_smartanim.cpp:37:
/Users/Shared/ECWolf/src/thingdef/thingdef.h:254:23: warning: destination for this 'memset'
call is a pointer to dynamic class 'DObject'; vtable pointer will be overwritten
[-Wdynamic-class-memaccess]
memset(definition->defaultInstance, 0, definition->size);
~~~~~~ ^
/Users/Shared/ECWolf/src/thingdef/thingdef.h:254:23: note: explicitly cast the pointer to
silence this warning
memset(definition->defaultInstance, 0, definition->size);
^
(void*)
In file included from /Users/Shared/ECWolf/src/g_blake/a_smartanim.cpp:36:
In file included from /Users/Shared/ECWolf/src/actor.h:41:
/Users/Shared/ECWolf/src/linkedlist.h:257:17: error: 'elNext' is a protected member of
'EmbeddedList<Thinker>::Node'
return node->elNext != EMBEDDEDLIST_UNLINKED;
^
/Users/Shared/ECWolf/src/thinker.h:98:67: note: in instantiation of member function
'EmbeddedList<Thinker>::List::IsLinked' requested here
...IsThinking() const { return EmbeddedList<Thinker>::List::IsLinked(this); }
^
/Users/Shared/ECWolf/src/linkedlist.h:64:9: note: declared protected here
Node *elNext, *elPrev;
^
1 warning and 11 errors generated.
make[2]: *** [src/CMakeFiles/ecwolf.dir/g_blake/a_smartanim.o] Error 1
make[1]: *** [src/CMakeFiles/ecwolf.dir/all] Error 2
make: *** [all] Error 2
Comments (10)
-
-
Account Deleted That gets me a little farther in the compiling, but now I'm getting a new fatal error regarding the absolute value functions. It might be a problem with XCode, but I'm updated to the latest (5.0.2) so I don't know why there would be.
make [ 8%] Built target lzma [ 9%] Built target zipdir [ 10%] Built target updaterevision [ 10%] Built target arithchk [ 11%] Built target qnan [ 33%] Built target gdtoa /Users/Shared/ECWolf/src/svnrevision.h is up to date at revision 131102-0253M. [ 33%] Built target revision_check [ 34%] Building CXX object src/CMakeFiles/ecwolf.dir/g_wolf/wolf_sbar.o In file included from /Users/Shared/ECWolf/src/g_wolf/wolf_sbar.cpp:12: /Users/Shared/ECWolf/src/thingdef/thingdef.h:254:23: warning: destination for this 'memset' call is a pointer to dynamic class 'DObject'; vtable pointer will be overwritten [-Wdynamic-class-memaccess] memset(definition->defaultInstance, 0, definitio... ~~~~~~ ^ /Users/Shared/ECWolf/src/thingdef/thingdef.h:254:23: note: explicitly cast the pointer to silence this warning memset(definition->defaultInstance, 0, definitio... ^ (void*) In file included from /Users/Shared/ECWolf/src/g_wolf/wolf_sbar.cpp:18: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:658:1: error: expected unqualified-id abs(float __x) _NOEXCEPT {return fabsf(__x);} ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/g_wolf/wolf_sbar.cpp:18: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:658:1: error: expected ')' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:658:1: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:26: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/g_wolf/wolf_sbar.cpp:18: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:658:1: error: expected ')' abs(float __x) _NOEXCEPT {return fabsf(__x);} ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:34: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:658:1: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:25: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/g_wolf/wolf_sbar.cpp:18: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:662:1: error: expected unqualified-id abs(double __x) _NOEXCEPT {return fabs(__x);} ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/g_wolf/wolf_sbar.cpp:18: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:662:1: error: expected ')' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:662:1: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:26: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/g_wolf/wolf_sbar.cpp:18: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:662:1: error: expected ')' abs(double __x) _NOEXCEPT {return fabs(__x);} ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:34: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:662:1: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:25: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/g_wolf/wolf_sbar.cpp:18: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:666:1: error: expected unqualified-id abs(long double __x) _NOEXCEPT {return fabsl(__x);} ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/g_wolf/wolf_sbar.cpp:18: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:666:1: error: expected ')' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:666:1: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:26: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/g_wolf/wolf_sbar.cpp:18: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:666:1: error: expected ')' abs(long double __x) _NOEXCEPT {return fabsl(__x);} ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:34: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:666:1: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:25: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ 1 warning and 9 errors generated. make[2]: *** [src/CMakeFiles/ecwolf.dir/g_wolf/wolf_sbar.o] Error 1 make[1]: *** [src/CMakeFiles/ecwolf.dir/all] Error 2 make: *** [all] Error 2
-
g_wolf/wolf_sbar.cpp remove #include <cmath>.
-
Account Deleted I removed the include cmath, but it didn't really change much.
make [ 8%] Built target lzma [ 9%] Built target zipdir [ 10%] Built target updaterevision /Users/Shared/ECWolf/src/svnrevision.h is up to date at revision 131102-0253M. [ 10%] Built target revision_check [ 10%] Built target arithchk [ 11%] Built target qnan [ 33%] Built target gdtoa [ 34%] Building CXX object src/CMakeFiles/ecwolf.dir/config.o In file included from /Users/Shared/ECWolf/src/config.cpp:38: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:158:44: error: expected unqualified-id inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) _NOEXCEPT ... ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/config.cpp:38: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:158:44: error: expected ')' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:158:44: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:26: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/config.cpp:38: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:158:44: error: expected ')' inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) _NOEXCEPT ... ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:34: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:158:44: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:25: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/config.cpp:38: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:160:44: error: expected unqualified-id inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT ... ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/config.cpp:38: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:160:44: error: expected ')' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:160:44: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:26: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/config.cpp:38: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:160:44: error: expected ')' inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT ... ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:34: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:160:44: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:25: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/config.cpp:40: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:658:1: error: expected unqualified-id abs(float __x) _NOEXCEPT {return fabsf(__x);} ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/config.cpp:40: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:658:1: error: expected ')' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:658:1: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:26: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/config.cpp:40: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:658:1: error: expected ')' abs(float __x) _NOEXCEPT {return fabsf(__x);} ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:34: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:658:1: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:25: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/config.cpp:40: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:662:1: error: expected unqualified-id abs(double __x) _NOEXCEPT {return fabs(__x);} ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/config.cpp:40: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:662:1: error: expected ')' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:662:1: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:26: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/config.cpp:40: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:662:1: error: expected ')' abs(double __x) _NOEXCEPT {return fabs(__x);} ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:34: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:662:1: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:25: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/config.cpp:40: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:666:1: error: expected unqualified-id abs(long double __x) _NOEXCEPT {return fabsl(__x);} ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/config.cpp:40: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:666:1: error: expected ')' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:666:1: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:26: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/config.cpp:40: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:666:1: error: expected ')' abs(long double __x) _NOEXCEPT {return fabsl(__x);} ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:34: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:666:1: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:25: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ 15 errors generated. make[2]: *** [src/CMakeFiles/ecwolf.dir/config.o] Error 1 make[1]: *** [src/CMakeFiles/ecwolf.dir/all] Error 2 make: *** [all] Error 2
-
Remove cmath from config.cpp.
-
Account Deleted That reduced the number of errors but it didn't solve the problem.
make [ 8%] Built target lzma [ 9%] Built target zipdir [ 10%] Built target updaterevision /Users/Shared/ECWolf/src/svnrevision.h is up to date at revision 131102-0253M. [ 10%] Built target revision_check [ 10%] Built target arithchk [ 11%] Built target qnan [ 33%] Built target gdtoa Scanning dependencies of target ecwolf [ 34%] Building CXX object src/CMakeFiles/ecwolf.dir/config.o In file included from /Users/Shared/ECWolf/src/config.cpp:38: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:158:44: error: expected unqualified-id inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) _NOEXCEPT ... ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/config.cpp:38: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:158:44: error: expected ')' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:158:44: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:26: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/config.cpp:38: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:158:44: error: expected ')' inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) _NOEXCEPT ... ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:34: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:158:44: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:25: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/config.cpp:38: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:160:44: error: expected unqualified-id inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT ... ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/config.cpp:38: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:160:44: error: expected ')' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:27: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:160:44: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:26: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ In file included from /Users/Shared/ECWolf/src/config.cpp:38: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:160:44: error: expected ')' inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT ... ^ /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:34: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:160:44: note: to match this '(' /Users/Shared/ECWolf/src/wl_def.h:73:16: note: expanded from macro 'abs' #define abs(x) ABS(x) ^ /Users/Shared/ECWolf/src/wl_def.h:70:25: note: expanded from macro 'ABS' #define ABS(x) ((int)(x)>0?(x):-(x)) ^ 6 errors generated. make[2]: *** [src/CMakeFiles/ecwolf.dir/config.o] Error 1 make[1]: *** [src/CMakeFiles/ecwolf.dir/all] Error 2 make: *** [all] Error 2
-
Try moving all the #include <cwhatevers> above the config.h and scanner.h includes in config.cpp.
-
Account Deleted That fixed the problem, it compiled correctly. Looking forward to using Planet Strike food stations in HD.
-
Fixed in changeset 4eb8c29
-
- changed status to resolved
- Log in to comment
Good to know ECWolf compiled on clang for the most part before. I should probably get around to getting clang working...
Can you try opening src/linkedlist.h and make the beginning of EmbeddedList look like this:
Does that fix the issue?