It is currently Thu Oct 22, 2020 10:29 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Linker OSX version error
PostPosted: Mon Oct 14, 2019 7:13 pm 
Offline
User
User

Joined: Thu Mar 14, 2013 11:24 am
Posts: 25
Location: paris
Hello forum!
When linking a static library(bullet.a), I get some errors like the one below:

Code:
ld: warning: object file (Window.a(AddKeyboardShortcut.o)) was built for newer OSX version (10.8) than being linked (10.7)


I successfully get rid of the one related to my library by setting the -mmacosx-version-min=10.7 in my cpp project Makefile...

here is the full error message:

Code:
ld: warning: object file (Gadget.a(AddGadgetItem.o)) was built for newer OSX version (10.8) than being linked (10.7)
ld: warning: object file (Gadget.a(Debug.o)) was built for newer OSX version (10.8) than being linked (10.7)
ld: warning: object file (Window.a(AddKeyboardShortcut.o)) was built for newer OSX version (10.8) than being linked (10.7)
ld: warning: object file (Window.a(Debug.o)) was built for newer OSX version (10.8) than being linked (10.7)
ld: warning: object file (Gadget.a(CanvasGadget.o)) was built for newer OSX version (10.8) than being linked (10.7)
ld: warning: object file (Gadget.a(ClearGadgetItems.o)) was built for newer OSX version (10.8) than being linked (10.7)
ld: warning: object file (Gadget.a(CloseGadgetList.o)) was built for newer OSX version (10.8) than being linked (10.7)
...
clang: error: linker command failed with exit code 1 (use -v to see invocation)


@fred or freak
against which OSX version are the PB libs compiled?


Top
 Profile  
Reply with quote  
 Post subject: Re: Linker OSX version error
PostPosted: Mon Oct 14, 2019 10:01 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 2681
Location: Germany
OS Version: xxx
Xcode Version: xxx
Purebasic Version:xxx

If it is an old version of macOS and Xcode. Maybe use an older version of PB.

See after login at Purebasic.com in the museum.

Starting with Xcode 9.0 PB v5.7x should also work.
Better with Xcode Veriosn 10.2 or from macOS Catalina Xcode version 11.1.

Don't forget to update the Command Line Tools of Xcode.

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: Linker OSX version error
PostPosted: Tue Oct 15, 2019 1:50 pm 
Offline
User
User

Joined: Thu Mar 14, 2013 11:24 am
Posts: 25
Location: paris
OS Version: 10.13.6 (MacOS High Sierra, I can't update the OS anymore...)
Xcode Version: 9.3
Purebasic Version: 7.1

I found the source of the problem :oops: :
an imported function in purebasic was not declared in the cpp project :D


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye