[5.72 LTS x86] Linker error (libstdc++ / libc++)

Mac OSX specific forum
User avatar
Danilo
Addict
Addict
Posts: 3037
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

[5.72 LTS x86] Linker error (libstdc++ / libc++)

Post by Danilo »

I always get the following linker error with PB 5.72 LTS x86 on macOS Mojave 10.14.6 and latest Xcode installed:

Image

Is this a possible bug with the x86 version?
User avatar
mk-soft
Always Here
Always Here
Posts: 5401
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: [5.72 LTS x86] Linker error (libstdc++ / libc++)

Post by mk-soft »

Unfortunately I only have a VM with High Sierra.

Here runs PB-v5.72 (x86) under High Sierra

Test this code

Code: Select all

Import "-stdlib=libc++ -mmacosx-version-min=10.9" : EndImport
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
Danilo
Addict
Addict
Posts: 3037
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: [5.72 LTS x86] Linker error (libstdc++ / libc++)

Post by Danilo »

Thanks mk-soft, but it did not help. Error message is now:
PureBasic - Linker error

Code: Select all

ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libpthread.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libpthread.tbd
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libm.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libm.tbd
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks//Cocoa.framework/Cocoa.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks//Cocoa.framework/Cocoa.tbd
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks//Carbon.framework/Carbon.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks//Carbon.framework/Carbon.tbd
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libc.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libc.tbd
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd
...
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Looks like the time of 32-bit i386 is over now. It's not a big problem anyway... ;) :lol:
User avatar
Shardik
Addict
Addict
Posts: 1989
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: [5.72 LTS x86] Linker error (libstdc++ / libc++)

Post by Shardik »

Danilo wrote:I always get the following linker error with PB 5.72 LTS x86 on macOS Mojave 10.14.6 and latest Xcode installed:
Beginning with Xcode 10 Apple has removed the support to compile x86 apps:
[color=#0040FF][u]Xcode 10 Release Notes[/u][/color] wrote:The macOS 10.14 SDK no longer contains support for compiling 32-bit applications. If developers need to compile for i386, Xcode 9.4 or earlier is required. (39858111)
User avatar
mk-soft
Always Here
Always Here
Posts: 5401
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: [5.72 LTS x86] Linker error (libstdc++ / libc++)

Post by mk-soft »

I work under macOS High Sierra (VM) with Xcode Version 10.1 (10B61)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
Danilo
Addict
Addict
Posts: 3037
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: [5.72 LTS x86] Linker error (libstdc++ / libc++)

Post by Danilo »

Thanks Shardik! :thumbsup:
Post Reply