Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6120571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:41:00+00:00 2026-05-23T15:41:00+00:00

Recently, I have a try to build and run sample hello world program of

  • 0

Recently, I have a try to build and run sample hello world program of google v8.
My xcode version is 4.0.2GA, x86_64.

The guide’s link: get Started

But when run the command:
g++ -Iinclude hello_world.cpp -o hello_world libv8.a -lpthread

The errors show:

ld: warning: ignoring file libv8.a, file was built for archive which is not the architecture being linked (x86_64)
Undefined symbols for architecture x86_64:
"v8::Context::Enter()", referenced from:
      v8::Context::Scope::Scope(v8::Handle<v8::Context>)in ccJsmYlc.o
  "v8::V8::DisposeGlobal(v8::internal::Object**)", referenced from:
      v8::Persistent<v8::Context>::Dispose()      in ccJsmYlc.o
  "v8::Context::Exit()", referenced from:
      v8::Context::Scope::~Scope()in ccJsmYlc.o
  "v8::HandleScope::HandleScope()", referenced from:
      _main in ccJsmYlc.o
  "v8::Context::New(v8::ExtensionConfiguration*, v8::Handle<v8::ObjectTemplate>, v8::Handle<v8::Value>)", referenced from:
      _main in ccJsmYlc.o
  "v8::String::New(char const*, int)", referenced from:
      _main in ccJsmYlc.o
  "v8::Script::Compile(v8::Handle<v8::String>, v8::ScriptOrigin*, v8::ScriptData*, v8::Handle<v8::String>)", referenced from:
      _main in ccJsmYlc.o
  "v8::Script::Run()", referenced from:
      _main in ccJsmYlc.o
  "v8::String::AsciiValue::AsciiValue(v8::Handle<v8::Value>)", referenced from:
      _main in ccJsmYlc.o
  "v8::String::AsciiValue::~AsciiValue()", referenced from:
      _main in ccJsmYlc.o
  "v8::HandleScope::~HandleScope()", referenced from:
      _main in ccJsmYlc.o

ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:41:01+00:00Added an answer on May 23, 2026 at 3:41 pm

    It should be obvious you are trying to link with a .a that was build for another architecture. Check out How do I determine the target architecture of static library (.a) on Mac OS X? to learn how to check the target architecture of that .a. Once you know that you can either retarget you project, or create a new libv8.a for the x86_64 architecture.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've recently have a reason to include into our build script the creation of
just simple question, recently i have setup a web server to build project using
I've recently reinstalled OSX, and now, when trying to build a new version of
I recently upgraded XCode to run iOS 4.2 from iOS 3.2. However, now, when
I have a winform project build on VS 2005 and framework 2. Recently, we
I recently have a problem that my java code works perfectly ok on my
I have been practicing TDD in C# for several years now and recently have
I'm using Visual Studio 2005 on a Windows XP SP3 machine and recently have
Recently I have been investigating the possibilities of caching in ASP.NET. I rolled my
Recently I have started playing with jQuery, and have been following a couple of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.