Author Topic: Linker Errors  (Read 1559 times)

C0deH4cker

  • Hero Member
  • *****
  • Posts: 2849
  • Reputation: 129
  • I am leaving iNinjas. Contact me via email.
  • Badges:
  • iDevices: iPhone 4S 16gb Black (5.1.1), iPad 2 32gb White (5.0.1), iPod Touch 2G 8gb (4.2.1)
Linker Errors
« on: June 20, 2011, 01:58:36 pm »
Does anybody here know what causes linker errors of the kind ld: symbol(s) not found? is it a missing -I, -L, or -l? Sorry if you dont know what imtalking about.

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4502
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: Linker Errors
« Reply #1 on: June 20, 2011, 02:06:54 pm »
You mean like a sym link?

C0deH4cker

  • Hero Member
  • *****
  • Posts: 2849
  • Reputation: 129
  • I am leaving iNinjas. Contact me via email.
  • Badges:
  • iDevices: iPhone 4S 16gb Black (5.1.1), iPad 2 32gb White (5.0.1), iPod Touch 2G 8gb (4.2.1)
Re: Linker Errors
« Reply #2 on: June 20, 2011, 02:33:37 pm »
No, like when compiling a program with gcc, during the linking phase with ld, it says that.

H4CK3R

  • Haxor
  • Sr. Member
  • *****
  • Posts: 407
  • Reputation: 42
  • I try and write cool tweaks!
    • Kyle Howells
  • Badges:
  • Computers: MacBook Pro
  • iDevices: iPod 1G, iPod 2G, iPod 4G, iPhone 4S, iPad 2, iPad mini
Re: Linker Errors
« Reply #3 on: June 20, 2011, 05:39:28 pm »
Xcode (uses GCC or LVM (I think)) gives that error when I haven't remembered to link against the required franework. Normally I've #import <>'d it fine but haven't actually included it in the project.

Don't know how you'd link against the franework when compiling through terminal (how to fix) but this should give you an idea what the error is.

C0deH4cker

  • Hero Member
  • *****
  • Posts: 2849
  • Reputation: 129
  • I am leaving iNinjas. Contact me via email.
  • Badges:
  • iDevices: iPhone 4S 16gb Black (5.1.1), iPad 2 32gb White (5.0.1), iPod Touch 2G 8gb (4.2.1)
Re: Linker Errors
« Reply #4 on: June 20, 2011, 06:58:54 pm »
Thank you. That narrows it down some. I think i know the problem. I need to -lLIBRARY_FILE  i think.

Don't like seeing ads? Click here to register!

BooCocky

  • Leader
  • Hero Member
  • *****
  • Posts: 875
  • Reputation: 81
  • All your base are belong to ininjas
  • Badges:
  • Computers: Dell Inspirion
  • iDevices: ipod shuffle
Re: Linker Errors
« Reply #5 on: June 24, 2011, 07:18:50 am »
yea it uses LVM.  I want LVM on my device.  I tried compiling but it crashes device midway.  Maybe can be compiled on iPhone4 or iPad2. 

C0deH4cker

  • Hero Member
  • *****
  • Posts: 2849
  • Reputation: 129
  • I am leaving iNinjas. Contact me via email.
  • Badges:
  • iDevices: iPhone 4S 16gb Black (5.1.1), iPad 2 32gb White (5.0.1), iPod Touch 2G 8gb (4.2.1)
Re: Linker Errors
« Reply #6 on: June 24, 2011, 08:22:54 am »
yea it uses LVM.  I want LVM on my device.  I tried compiling but it crashes device midway.  Maybe can be compiled on iPhone4 or iPad2.
LVM? Do you mean LLVM, or low level virtual machine? Or do you mean something else?

H4CK3R

  • Haxor
  • Sr. Member
  • *****
  • Posts: 407
  • Reputation: 42
  • I try and write cool tweaks!
    • Kyle Howells
  • Badges:
  • Computers: MacBook Pro
  • iDevices: iPod 1G, iPod 2G, iPod 4G, iPhone 4S, iPad 2, iPad mini
Re: Linker Errors
« Reply #7 on: June 25, 2011, 03:31:42 pm »
LVM? Do you mean LLVM, or low level virtual machine? Or do you mean something else?
http://llvm.org/Users.html