building with vs2019 - c2027 use of undefined type “v8::internal::Object"

26 views
Skip to first unread message

Jerry Jin

unread,
Jul 28, 2019, 7:16:04 AM7/28/19
to v8-dev
Hello, I'm new to v8-dev, i just started playing around

I'm able build v8 following official building steps, and i'm trying to build with vs2019 on windows 10 64 bit

when building with visual studio 2019, whenever the target involves 'src/handles/handles.h', like v8_base_without_compiler, there's always building error:

Error C2027 use of undefined type “v8::internal::Object" v8_base_without_compiler E:\v8\src\handles\handles.h 144

  V8_INLINE T operator*() const {
    // unchecked_cast because we rather trust Handle<T> to contain a T than
    // include all the respective -inl.h headers for SLOW_DCHECKs.
    SLOW_DCHECK(IsDereferenceAllowed(INCLUDE_DEFERRED_CHECK));
    return T::unchecked_cast(Object(*location()));  // error on this line
  }

did i miss anything, how i can fix this?

thanks!

Jerry Jin

unread,
Aug 8, 2019, 9:03:07 AM8/8/19
to v8-dev
Reply all
Reply to author
Forward
0 new messages