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

Re: linker error nonsense?


  • Subject: Re: linker error nonsense?
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 27 Oct 2015 11:45:28 -0600


On Mon, Oct 26, 2015, at 07:20 PM, Patrick J. Collins wrote:
> Hi everyone,
>
> I have a really weird linker error that I am completely baffled by...
>
> Basically, I have a file:  RangeEditor.m, which uses a c function
> called clamp(). clamp is defined in a utils.m file which has a header
> exposed in utils.h...
>
> RangeEditor, was located at
> $(project)/Menus/MenuItems/Widgets/RangeEditor/
>
> ...
>
> I decided that I wanted that file at the root level.. so I moved
> RangeEditor.m and RangeEditor.h to $(project)/
>
> ... now when I build, I get:
>
>   Undefined symbols for architecture arm64:
>     "_clamp", referenced from:
>         -[RangeEditor draggableNoteDidMove:touch:] in RangeEditor.o
>        (maybe you meant: _clampf)
>   ld: symbol(s) not found for architecture arm64
>   clang: error: linker command failed with exit code 1 (use -v to see
>   invocation)
>
> If I move the files back, I still get that error.  But if I revert the
> changes
> in git (literally only moving those files around) then everything builds
> perfectly fine.
>
> What in the world???

There are no xcodeproj changes concurrent with those moves?

--Kyle Sluder
 _______________________________________________
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: linker error nonsense?
      • From: "Patrick J. Collins" <email@hidden>
References: 
 >linker error nonsense? (From: "Patrick J. Collins" <email@hidden>)

  • Prev by Date: Re: linker error nonsense?
  • Next by Date: Re: linker error nonsense?
  • Previous by thread: Re: linker error nonsense?
  • Next by thread: Re: linker error nonsense?
  • Index(es):
    • Date
    • Thread