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

  • SEARCH
  • Home
  • 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 6854451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:38:05+00:00 2026-05-27T01:38:05+00:00

Newbie-Problem: I have a small test-class (TestLibMain.cpp) in c++ an compiled it to a

  • 0

Newbie-Problem:

I have a small test-class (TestLibMain.cpp) in c++ an compiled it to a “libTestLib.dylib” which is located in a subdirectory “debug” of the directory containing the TestLibMain.h-file.

How can I use the dylib from my Xcode-project? I imported the TestLibMain.h in my code and set the Header-search path in build settings. This works fine. But now the linker tells me that he can’t find the dylib (nor the “TestLibMain.cpp” file which he could compile himself…). The dylib was created in Ecplise/CDT has a different name: “libTestLib.dylib”. Setting the “Library search paths” in Xcode doesn’t help….

This my error message:

Undefined symbols for architecture i386:
  "TestLibMain::TestLibMain()", referenced from:
      -[tbViewController viewWillAppear:] in tbViewController.o
  "TestLibMain::getNumber()", referenced from:
      -[tbViewController viewWillAppear:] in tbViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Questions:

  1. Is it possible to link a dylib-file created for i386 in Xcode? I want to use in a Xcode- project compiled libs from a project in Eclipse (which I want to reuse in Android NDK…)
  2. How can I make Xcode find the dylib-file?
  3. Is actually the dylib file the right file to link? There has no .a file created by eclipse, but a .d and a .o file?
  • 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-27T01:38:06+00:00Added an answer on May 27, 2026 at 1:38 am

    1.If you are using the dylib for the iOS project – it is not possible, cause it is not permitted by Apple to use custom dynamic libraries. You also can’t use libraries built using NDK even if they are for the same architecture, cause they have different binary format (Mac OS and iOS use Mach-O and Android uses ELF).

    2.Go to your target preferences->Build phases->press ‘+’->Add other

    3.dylib is the right file unless it is not an iOS project.

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

Sidebar

Related Questions

I am a Python newbie. I have this small problem. I want to print
Just a newbie with iPhone development.. I just have a small problem but huge
i am a newbie C# Programmer. I have a problem in xhtml. I want
Newbie problem: I have a SQL SP with ten parameters (eight input, two output)
I'm a complete WinDbg newbie and I've been trying to debug a WindowsXP problem
I am newbie with Cocoa Touch, I have a problem that I try to
Im running into a small (newbie) problem. I've got 2 models: question & reviews.
I seem to have a probably newbie problem but here it is. How do
Just another Rails newbie with a problem. I have some Javascript (dynamic) in a
I have to resolve problem which in simple way could be like: GUI app

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.