I had that issue as well. I resolved it by using the suggestion from gcc in your error log. I added -std=gnu++11 to my CFLAGS.
On Sat, May 16, 2015 at 7:44 PM, Jason Josephy <[email protected]> wrote: > yes i did miss the note about turning off i18n support so went back and > redid everything and followed all the docs so now i get past the link > problem but the samples wont build: > > In file included from hello_world.cpp:1:0: > include/v8.h:336:1: error: expected unqualified-id before ‘using’ > using Handle = Local<T>; > ^ > include/v8.h: In constructor ‘v8::MaybeLocal<T>::MaybeLocal()’: > include/v8.h:352:33: error: ‘nullptr’ was not declared in this scope > V8_INLINE MaybeLocal() : val_(nullptr) {} > ^ > include/v8.h: In member function ‘bool v8::MaybeLocal<T>::IsEmpty() const’: > include/v8.h:359:51: error: ‘nullptr’ was not declared in this scope > V8_INLINE bool IsEmpty() const { return val_ == nullptr; } > ^ > include/v8.h: In member function ‘bool > v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const’: > include/v8.h:363:29: error: ‘nullptr’ was not declared in this scope > out->val_ = IsEmpty() ? nullptr : this->val_; > ^ > include/v8.h: In member function ‘bool > v8::WeakCallbackInfo<T>::IsFirstPass() const’: > include/v8.h:429:50: error: ‘nullptr’ was not declared in this scope > bool IsFirstPass() const { return callback_ != nullptr; } > ^ > include/v8.h: At global scope: > include/v8.h:468:1: error: expected unqualified-id before ‘using’ > using PhantomCallbackData = WeakCallbackInfo<T>; > ^ > include/v8.h:471:1: warning: scoped enums only available with -std=c++11 or > -std=gnu++11 [enabled by default] > enum class WeakCallbackType { kParameter, kInternalFields }; > ^ > include/v8.h:499:48: error: ‘Handle’ does not name a type > V8_INLINE void Reset(Isolate* isolate, const Handle<S>& other); > ^ > include/v8.h:499:48: error: ISO C++ forbids declaration of ‘parameter’ with > no type [-fpermissive] > include/v8.h:499:54: error: expected ‘,’ or ‘...’ before ‘<’ token > V8_INLINE void Reset(Isolate* isolate, const Handle<S>& other); > ^ > include/v8.h:520:54: error: ‘Handle’ does not name a type > template <class S> V8_INLINE bool operator==(const Handle<S>& that) const > { > ^ > include/v8.h:520:54: error: ISO C++ forbids declaration of ‘parameter’ with > no type [-fpermissive] > include/v8.h:520:60: error: expected ‘,’ or ‘...’ before ‘<’ token > template <class S> V8_INLINE bool operator==(const Handle<S>& that) const > { > ^ > include/v8.h:533:54: error: ‘Handle’ does not name a type > template <class S> V8_INLINE bool operator!=(const Handle<S>& that) const > { > ^ > include/v8.h:533:54: error: ISO C++ forbids declaration of ‘parameter’ with > no type [-fpermissive] > include/v8.h:533:60: error: expected ‘,’ or ‘...’ before ‘<’ token > template <class S> V8_INLINE bool operator!=(const Handle<S>& that) const > { > ^ > include/v8.h:634:43: warning: defaulted and deleted functions only available > with -std=c++11 or -std=gnu++11 [enabled by default] > PersistentBase(PersistentBase& other) = delete; // NOLINT > ^ > > <clipped for brevity> > > Thaks for the help > > On Friday, May 15, 2015 at 9:31:56 PM UTC-7, Jason Josephy wrote: >> >> Hi - I am trying to build a V8 c++ app in eclipse and i am unable to link >> to ICU. I get hundred of unresolved errors all relating to ICU. Im pretty >> sure that this is a problem with Eclipse more than anything but i was >> curious if anyone had run into this and if they had a solution. >> >> > -- > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
