• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Curious linker errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Curious linker errors


  • Subject: Re: Curious linker errors
  • From: Issac Trotts <email@hidden>
  • Date: Mon, 30 Mar 2009 22:03:41 -0700

In case anyone else runs into this problem, I got rid of the linker
errors by creating a fresh Xcode project and adding the old source
files to it.

On Mon, Mar 30, 2009 at 9:24 PM, Issac Trotts <email@hidden> wrote:
> Hi Xcode users,
>
> I'm having some trouble with linking, not sure why. When I try to call
> C functions from Objective C, the linker says the symbols for the
> called functions are undefined. I suspect this has to do with having
> previous versions of the C files with .cpp or .mm extensions, but
> can't say for sure.
>
> I had a similar problem with linking of global variables (serves me
> right for using globals I guess). That problem went away when I made
> new files globals.h and globals.m, and moved the globals into them. I
> have no idea why that worked.
>
> Issac
>
>
> Building target “Zoominous” of project “Zoominous” with configuration “Debug”
>
> Checking Dependencies
>
> Ld /Users/issactrotts/xcode_build_products/Debug/Zoominous.app/Contents/MacOS/Zoominous
> normal i386
>
>     cd /Users/issactrotts/Documents/Zoominous
>
>     setenv MACOSX_DEPLOYMENT_TARGET 10.5
>
>     /Developer/usr/bin/gcc-4.0 -arch i386 -isysroot
> /Developer/SDKs/MacOSX10.5.sdk
> -L/Users/issactrotts/xcode_build_products/Debug
> -L/usr/local/mysql-5.1.32-osx10.5-x86/lib
> -F/Users/issactrotts/xcode_build_products/Debug -filelist
> /Users/issactrotts/xcode_build_products/Zoominous.build/Debug/Zoominous.build/Objects-normal/i386/Zoominous.LinkFileList
> -mmacosx-version-min=10.5 -framework Cocoa -lmysqlclient -framework
> OpenGL -framework GLUT -o
> /Users/issactrotts/xcode_build_products/Debug/Zoominous.app/Contents/MacOS/Zoominous
>
> Undefined symbols:
>
>   "_dataset_bounds_microns", referenced from:
>
>       -[GlView reset_camera] in GlView.o
>
>   "_load_datasets_list", referenced from:
>
>       -[GlView prepare] in GlView.o
>
>   "_stackvis_load_dataset", referenced from:
>
>       _load_random_dataset in GlView.o
>
>   "_trackball", referenced from:
>
>       -[GlView reset_camera] in GlView.o
>
>   "_init_sql", referenced from:
>
>       -[GlView prepare] in GlView.o
>
> ld: symbol(s) not found
>
> collect2: ld returned 1 exit status
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Curious linker errors (From: Issac Trotts <email@hidden>)

  • Prev by Date: Curious linker errors
  • Next by Date: Re: Clicking on filenames in Groups & Files does nothing useful
  • Previous by thread: Curious linker errors
  • Next by thread: #include <net/if_dl.h> deadlocks Xcode
  • Index(es):
    • Date
    • Thread