Can't run demo or any programs due to error

Mac OSX specific forum
agilefalcon
New User
New User
Posts: 7
Joined: Thu Feb 04, 2016 9:37 pm

Can't run demo or any programs due to error

Post by agilefalcon »

Before I give up on this trialware: Any idea what this message means when I try to run a program?

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

I have X-Code installed, latest version.

So far, zero luck in trying to get this development tool to run anything.

Chris
agilefalcon
New User
New User
Posts: 7
Joined: Thu Feb 04, 2016 9:37 pm

Re: Can't run demo or any programs due to error

Post by agilefalcon »

Reinstalled X-Code and now I get this error:

clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9
ld: illegal text-relocation to '_S1' in purebasic.o from '_main' in purebasic.o for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Chris
User avatar
Keya
Addict
Addict
Posts: 1891
Joined: Thu Jun 04, 2015 7:10 am

Re: Can't run demo or any programs due to error

Post by Keya »

which OSX are you using?
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Can't run demo or any programs due to error

Post by wilbert »

agilefalcon wrote:clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9
See this thread
http://www.purebasic.fr/english/viewtop ... 30#p494430
Windows (x64)
Raspberry Pi OS (Arm64)
agilefalcon
New User
New User
Posts: 7
Joined: Thu Feb 04, 2016 9:37 pm

Re: Can't run demo or any programs due to error

Post by agilefalcon »

I'm running Mac OS, 10.12.1 (Sierra). Have the latest X-Code and I guess that's what broke the compiler/linker.

The below line added to the start of my code corrected the problem:

Import "--stdlib=libc++ -mmacosx-version-min=10.7" : EndImport

Thank you for the help.

Chris
Post Reply