Page 1 of 1

Can't run demo or any programs due to error

Posted: Sun Nov 06, 2016 1:10 am
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

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

Posted: Sun Nov 06, 2016 2:41 am
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

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

Posted: Sun Nov 06, 2016 7:22 am
by Keya
which OSX are you using?

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

Posted: Sun Nov 06, 2016 7:44 am
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

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

Posted: Sun Nov 06, 2016 9:34 pm
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