• 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
linking error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

linking error?


  • Subject: linking error?
  • From: Michael <email@hidden>
  • Date: Sat, 2 Aug 2008 15:04:21 -0700

Hi all,
I am getting a "linking" error and not too sure how to deal with this.

Set up.
Standard Tool.
Two files.

Main.c  Defines: static char option = 0;

String_tools.c
int foo() { extern int  option; ......}

The error is as follows.

linking/Users....../
"_option" referenced from
_option$non_lazy_ptr in ...   .o
symbol(s) not found.
collect2: Id returned.


Now, I assume I know what it means...well I think I do...but I am not sure what is causing this or how to correct it.



Thanks in advance.

Xcode 3.1
Mac Pro
_______________________________________________
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


  • Follow-Ups:
    • Re: linking error?
      • From: Stephane Sudre <email@hidden>
    • Re: linking error?
      • From: Tommy Nordgren <email@hidden>
    • Re: linking error?
      • From: Tommy Nordgren <email@hidden>
  • Prev by Date: Re: SVN newbie....
  • Next by Date: Re: linking error?
  • Previous by thread: Re: SVN newbie....
  • Next by thread: Re: linking error?
  • Index(es):
    • Date
    • Thread