Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 5, 2009, 07:10 PM   #1
Soulstorm
macrumors 68000
 
Soulstorm's Avatar
 
Join Date: Feb 2005
.dylibs and .a files

As far as I understand, .dylib files are dynamic libraries and .a files are static libraries.

Both have their headers in a separate place. Most 3rd party libraries come in the form of .dylib files, but there are some occasions where I have encountered both of them for one library, such as libpng when installed using Fink.

My question is this:

- What is the proper way to link your Xcode project against a .dylib or a .a file?
- In case the .a file has a .dylib file with the same name in the same installation directory, could it be that the .a file depends on the .dylib file?
- How can I make link my program against a .a or a .dylib file and then make it run on other machines apart from my own?

i am searching Apple's documentation, and I cannot find any relevant text. Please help!
Soulstorm is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Mavericks - extremely slow to list files when selecting files in finder and Safari iosuser OS X Mavericks (10.9) 33 Aug 29, 2014 04:40 AM
Copy pasting files in OSX SL: stop copying mid-way but keep pasted files thus far? Charlie Croker OS X 0 Nov 7, 2012 11:52 AM
Can I Replace Time Machine files with CCC Files? Help! No Backup will Restore Smittay Mac Applications and Mac App Store 4 Sep 4, 2012 04:00 PM
Is there a good program to package a group of files into multiple rar files? east85 Mac Applications and Mac App Store 5 Aug 27, 2012 04:00 PM
Problems with linking to Boost dylibs in Xcode TastyCocoa Mac Programming 2 Aug 17, 2012 05:58 AM

Forum Jump

All times are GMT -5. The time now is 09:28 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC