Page 1 of 1
[5.31] El Capitan Linker Error
Posted: Thu Jul 30, 2015 12:30 pm
by erion
Hi all,
PureBasic apps will not compile on either the public beta or the developer previews of Os X 10.11 el Capitan, displaying a linker error:
ld: library not found for -lgcc_s.10.5clang: error: linker command failed with exit code 1 (use -v to see invocation)
Erion
Re: [5.31] El Capitan Linker Error
Posted: Thu Jul 30, 2015 3:17 pm
by fsw
Did you install XCode?
You also need the command line tools.
(It's a separate install through XCode)
Re: [5.31] El Capitan Linker Error
Posted: Thu Jul 30, 2015 6:36 pm
by erion
I'm using Xcode 6.4 with the command line tools installed.
Re: [5.31] El Capitan Linker Error
Posted: Thu Jul 30, 2015 6:41 pm
by wilbert
Try XCode 7 beta.
Re: [5.31] El Capitan Linker Error
Posted: Thu Jul 30, 2015 7:41 pm
by erion
Thanks, this seems to have solved my problem.
For some reason other native apps compile with Xcode 6.4, but not PB apps, as they need Xcode 7.
I'm leaving this topic here as it might be useful, at least until Xcode 7 gets released.
Erion
Re: [5.31] El Capitan Linker Error
Posted: Fri Oct 09, 2015 10:54 pm
by WilliamL
I just installed El Capitan with XCode 7.0.1 and PB seems to be running fine with 5.40b9x64. I did the standard install from the App Store.
Re: [5.31] El Capitan Linker Error
Posted: Sat Oct 10, 2015 7:23 am
by Fred
Thanks for the report !
Re: [5.31] El Capitan Linker Error
Posted: Wed Mar 23, 2016 7:09 pm
by AndyMK
PB 5.42 LTS on EL Capitan with Xcode 7.3.
Linker error "id: file not found: string.a clang error: linker command failed with exit code 1"
This is with a simple debug "hello world" command.
Re: [5.31] El Capitan Linker Error
Posted: Mon Mar 28, 2016 8:46 am
by thanos
Hello.
Same problem with AndyMK.
Configuration:
OS X El Capitan Version 10.11.4
Purebasic 5.42 LTS (both 32 and 64 bits)
Xcode 7.3
The Xcode and command line tools are installed:
$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.29)
Target: x86_64-apple-darwin15.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Error message:
PureBasic - Linker error
d: file not found: String.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Regards.
Thanos
Re: [5.31] El Capitan Linker Error
Posted: Mon Mar 28, 2016 8:50 am
by wilbert
See this topic
http://www.purebasic.fr/english/viewtop ... 24&t=65269
The solution is to download PB 5.42 again.
Re: [5.31] El Capitan Linker Error
Posted: Mon Mar 28, 2016 9:18 am
by thanos
Thanks a lot!
It works!
Regards.
Thanos