Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
I have a similar problem. One of my projects has stopped working:

Undefined symbols for architecture x86_64:
"_myFunctionName", referenced from:
_callingfunctionName in my.cfilename.o

The project compiles but doesn't link. I checked carefully and the .h file is #included in the .c file with the calling function. Also the called function is correctly prototyped in its .h file and defined in the .c file. This called file is used in a lot of my projects and works in all but this one. This code doesn't call any library functions except standard C functions so I don't know what framework would be missing. I have the Cocoa, Appkit, CoreData and foundation.foundation frameworks in my project.

It appears that all of the functions that won't link call the same function. It only calls one library function: modf().

The first function that won't link calls modf(). Shouldn't this be in the basic frameworks?

Should be part of the standard library. Check if your build settings contain for example "C++ Standard Libraries".
 
Should be part of the standard library. Check if your build settings contain for example "C++ Standard Libraries".

I don't see anything like that in my build settings. What group should it be in?

Also if the C Standard Library was missing wouldn't other calls to C functions fail to link as well?
 
I solved the problem this morning: I created a new project of the same type with a different name than the old one and added all of the files from the old one. The project had to have a different name than the old one because if it had the same name XCode would report the same spurious linker errors. It looks like an XCode brain phart.
 
Solved mach-o linker error ("_xml.." referenced from:") Error in Xcode 5.0

In the "Link library with Binary" section I added the framework "security.framework". Next in the target project build settings in the "search paths" section I added "$(SDK_DIR)/usr/include/libxml2" (not in quotes) to the "Header search paths" for both the debug and release paths. In the "linking" section I changed the "Mach-O Type" setting from "Executable" to "Static Library". Works now
 
library not found for -lsqlite3.0 in xcode while archiving

I am stuck in archeiving the xcode project,I have import libsqlite3.dylib framework in "Link Binary with Library" when I run whole project I works fine But when I archeive the project then it gives me following error!!

ld: library not found for -lsqlite3.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)
:(
I have Xcode5 and Deployement Target is 7.0

Thanks in Advance. Any help will be appreciated
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.