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 7745147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:56:27+00:00 2026-06-01T09:56:27+00:00

I am trying to compile some stuff under mac os 10.7 in eclipse and

  • 0

I am trying to compile some stuff under mac os 10.7 in eclipse and the build dies on:

  Undefined symbols for architecture x86_64:
  "_kCFAllocatorDefault", referenced from:
      ___GLeeGetProcAddress in GLee.o
  "_CFURLCreateWithFileSystemPath", referenced from:
      ___GLeeGetProcAddress in GLee.o
  "_CFStringCreateWithCString", referenced from:
      ___GLeeGetProcAddress in GLee.o
  "_CFBundleCreate", referenced from:
      ___GLeeGetProcAddress in GLee.o
  "_CFBundleGetFunctionPointerForName", referenced from:
      ___GLeeGetProcAddress in GLee.o
  "_CFRelease", referenced from:
      ___GLeeGetProcAddress in GLee.o
  "_glGetString", referenced from:
      ___GLeeGetExtensions in GLee.o
      _GLeeGetExtStrGL in GLee.o
      _GLeeInit in GLee.o
     (maybe you meant: _GLee_Lazy_glGetStringi, _GLeeFuncPtr_glGetStringi )
  "___CFConstantStringClassReference", referenced from:
      CFString in GLee.o

So I know the problem is with ld symbols. Now I tried going to project proprieties and adding -framework CoreFramework to parameters of g++ and gcc in eclipse but that didnt fix it.

Where are these symbols located and more importantly – how do I add them to my project?

  • 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-06-01T09:56:28+00:00Added an answer on June 1, 2026 at 9:56 am

    I fixed this by adding a .dylib to linker. How to set it up?

    1. Go to project proprieties
    2. Go to C/C++ build –> settings
    3. Choose Mac OS X C++ Linker –> Libraries
      Here is where the tricky part is… I found out by “try-error” method, how this works:

    Lets say you have a dylib file you want to add called “libMyLib.dylib” located in /opt/local/lib/MyLibrary

    To part of the window where it says libraries add line
    “MyLib”
    To part of the window where it says Library search path add line
    “/opt/local/lib/MyLibrary/”

    => eclipse will automatically do this:
    1. add “lib” in front of the string
    2. add “.dylib” after your string

    There comes another problem with Mac… Lets say you use symbols from CoreFoundation framework. Mac OS frameworks are essentialy dylibs with header files … If you are not sure you can always check by “file myFile”

    The problem is that eclipse will never correctly pick up on those dylibs from MAC OS SDK and /System/Library/Frameworks/ cause they dont have the .dylib added to them. The trick is to simply go to where the dylib is located (eventhough it doesnt have a .dylib in its name) e.g.
    cd /System/Library/Frameworks/CoreFoundation.framework

    and then copy the file and add dylib (do NOT RENAME IT!!!)

      file CoreFoundation
      CoreFoundation (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64 
      CoreFoundation (for architecture i386):   Mach-O dynamically linked shared library i386
      #copy the lib and name it to "eclipse friendly format"
      cp CoreFoundation libCoreFoundation.dylib
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Undefined symbols for architecture x86_64: "_objc_unretainedPointer", referenced from: -[CJSONScanner scanJSONStringConstant:error:] in CJSONScanner.o -[CJSONSerializer serializeNumber:error:]
I'm trying to compile with g++ some code previously developed under Visual C++ 2008
I am trying to do some stuff before a build of my Android project.
I'm trying to compile some code which contains the following declaration, because I would
I'm trying to compile some fortran files in Xcode, using a makefile made by
I'm currently trying to compile some code examples from http://developer.gnome.org/gtkmm-tutorial/unstable/sec-treeview-examples.html.en but from what I
I have installed clang and llvm from source, and am trying to compile some
While trying to compile my project, that uses some third party headers, with mingw
I was recently fighting some problems trying to compile an open source library on
I am trying to use some sample code and my compiler won't compile this

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.