Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 32 by
Vishal.J...@gmail.com: member access into incomplete type
http://code.google.com/p/google-js-test/issues/detail?id=32
I am trying to compile google-js-test. I ran brew and it completed
installation of all dependencies. But could not compile gogle-js-test.
So I use sudo make install. I get following error:
c++ -DHASH_NAMESPACE=__gnu_cxx -I. -I/usr/include/libxml2
-DDEFAULT_DATA_DIR=/usr/local/share/gjstest -c -o
gjstest/internal/cpp/v8_utils.o gjstest/internal/cpp/v8_utils.cc
gjstest/internal/cpp/v8_utils.cc:105:50: error: unknown type
name 'Arguments'; did you mean 'v8::internal::Arguments'?
static Handle<Value> RunAssociatedCallback(const Arguments& args) {
^~~~~~~~~
v8::internal::Arguments
/usr/local/include/v8.h:140:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
gjstest/internal/cpp/v8_utils.cc:138:78: error: too few arguments to
function call, expected 2, have 1
Persistent<ObjectTemplate> weak_ref =
Persistent<ObjectTemplate>::New(*tmpl);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/usr/local/include/v8.h:733:3: note: 'New' declared here
V8_INLINE static T* New(Isolate* isolate, T* that);
^
/usr/local/include/v8config.h:301:20: note: expanded from macro 'V8_INLINE'
# define V8_INLINE inline __attribute__((always_inline))
^
I also added statement "using v8::internal::Arguments". IN that case error
changes to:
c++ -DHASH_NAMESPACE=__gnu_cxx -I. -I/usr/include/libxml2
-DDEFAULT_DATA_DIR=/usr/local/share/gjstest -c -o
gjstest/internal/cpp/v8_utils.o gjstest/internal/cpp/v8_utils.cc
gjstest/internal/cpp/v8_utils.cc:107:33: error: member access into
incomplete type 'const v8::internal::Arguments'
const Local<Value> data = args.Data();
^
/usr/local/include/v8.h:140:7: note: forward declaration
of 'v8::internal::Arguments'
class Arguments;
^
Any help how to compile? (I am using Macbook pro)
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings