Skip to content

Instantly share code, notes, and snippets.

@gkatsev
Created November 3, 2014 05:23
Show Gist options
  • Save gkatsev/3c98e71827eb40a89a72 to your computer and use it in GitHub Desktop.
Save gkatsev/3c98e71827eb40a89a72 to your computer and use it in GitHub Desktop.
`--> make all
gcc shovel.c `js24-config --cflags --libs` -o shovel.bin -O3 -Werror -Wunused
In file included from /usr/include/mozjs-24/mozilla/Casting.h:12:0,
from /usr/include/mozjs-24/mozilla/FloatingPoint.h:13,
from /usr/include/mozjs-24/jsapi.h:12,
from shovel.c:2:
/usr/include/mozjs-24/mozilla/TypeTraits.h:19:1: error: unknown type name ‘namespace’
namespace mozilla {
^
/usr/include/mozjs-24/mozilla/TypeTraits.h:19:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
namespace mozilla {
^
In file included from /usr/include/mozjs-24/mozilla/FloatingPoint.h:13:0,
from /usr/include/mozjs-24/jsapi.h:12,
from shovel.c:2:
/usr/include/mozjs-24/mozilla/Casting.h:16:1: error: unknown type name ‘namespace’
namespace mozilla {
^
/usr/include/mozjs-24/mozilla/Casting.h:16:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
namespace mozilla {
^
In file included from /usr/include/mozjs-24/jsapi.h:12:0,
from shovel.c:2:
/usr/include/mozjs-24/mozilla/FloatingPoint.h:16:1: error: unknown type name ‘namespace’
namespace mozilla {
^
/usr/include/mozjs-24/mozilla/FloatingPoint.h:16:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
namespace mozilla {
^
In file included from /usr/include/mozjs-24/jsapi.h:13:0,
from shovel.c:2:
/usr/include/mozjs-24/mozilla/RangedPtr.h:18:1: error: unknown type name ‘namespace’
namespace mozilla {
^
/usr/include/mozjs-24/mozilla/RangedPtr.h:18:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
namespace mozilla {
^
In file included from /usr/include/mozjs-24/jsapi.h:15:0,
from shovel.c:2:
/usr/include/mozjs-24/mozilla/ThreadLocal.h:32:1: error: unknown type name ‘namespace’
namespace mozilla {
^
/usr/include/mozjs-24/mozilla/ThreadLocal.h:32:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
namespace mozilla {
^
In file included from /usr/include/mozjs-24/js/Utility.h:25:0,
from /usr/include/mozjs-24/jsalloc.h:10,
from /usr/include/mozjs-24/jsapi.h:23,
from shovel.c:2:
/usr/include/mozjs-24/js/TemplateLib.h:19:1: error: unknown type name ‘namespace’
namespace js {
^
/usr/include/mozjs-24/js/TemplateLib.h:19:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
namespace js {
^
In file included from /usr/include/mozjs-24/jsalloc.h:10:0,
from /usr/include/mozjs-24/jsapi.h:23,
from shovel.c:2:
/usr/include/mozjs-24/js/Utility.h:28:1: error: unknown type name ‘namespace’
namespace JS {}
^
/usr/include/mozjs-24/js/Utility.h:28:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
namespace JS {}
^
/usr/include/mozjs-24/js/Utility.h:31:1: error: unknown type name ‘namespace’
namespace mozilla {}
^
/usr/include/mozjs-24/js/Utility.h:31:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
namespace mozilla {}
^
/usr/include/mozjs-24/js/Utility.h:34:1: error: unknown type name ‘namespace’
namespace js {}
^
/usr/include/mozjs-24/js/Utility.h:34:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
namespace js {}
^
/usr/include/mozjs-24/js/Utility.h:163:24: error: conflicting types for ‘js_calloc’
static JS_INLINE void* js_calloc(size_t nmemb, size_t size)
^
/usr/include/mozjs-24/js/Utility.h:157:24: note: previous definition of ‘js_calloc’ was here
static JS_INLINE void* js_calloc(size_t bytes)
^
/usr/include/mozjs-24/js/Utility.h:368:15: fatal error: new: No such file or directory
#include <new>
^
compilation terminated.
make: *** [all] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment