Contribute  :  Calendar  :  Advanced Search  :  Site Statistics  :  Directory  :  Files to download  :  Links for developers  :  Privacy policy  :  Web Resources  :  Polls  
    MacOSX Guru Site Information, tips and tricks, FAQ for Mac OS X developers    
 Welcome to MacOSX Guru Site
 Saturday, March 23 2019 @ 10:20 PM UTC

How to solve 'Undefined symbol "_open$UNIX2003"' and similar

ProjectBuilder-XCodeHow to solve these error messages at link time:

Undefined symbols:
>>   "_fcntl$UNIX2003", referenced from:
>>       ___gcov_open in SOME_LIB.a(_XXX.o)
>>   "_close$UNIX2003", referenced from:
>>       ___gcov_open in SOME_LIB.a(_XXX.o)
>>   "_open$UNIX2003", referenced from:
>>       ___gcov_open in SOME_LIB.a(_XXX.o)

You got these messages because the "SOME_LIB.a" library was linked against 10.5 SDK, but you are now using it in a project for which you now require 10.4 (or less) SDK.

Once you know why you got the errors, the solution is pretty obvious:
either you recompile the SOME_LIB.a with the required SDK - if you have the sources and if they are compatible with the targeted SDK,
either you have to raise the minimum compatibility level of the project linking to SOME_LIB.a to 10.5 SDK.

If none of these are possible, you are probably in big trouble…

What's Related

Story Options

How to solve 'Undefined symbol "_open$UNIX2003"' and similar | 0 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
 Copyright © 2019 MacOSX Guru Site
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.05 seconds