linker error nonsense?
linker error nonsense?
- Subject: linker error nonsense?
- From: "Patrick J. Collins" <email@hidden>
- Date: Mon, 26 Oct 2015 18:20:29 -0700 (PDT)
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???
Patrick J. Collins
http://collinatorstudios.com
_______________________________________________
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