• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to handle link dependencies under Xcode vs. MS Visual C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to handle link dependencies under Xcode vs. MS Visual C++


  • Subject: Re: How to handle link dependencies under Xcode vs. MS Visual C++
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 23 Jun 2005 08:20:53 -0700

On Jun 23, 2005, at 6:45 AM, email@hidden wrote:

I am porting code from MS Visual C++ to Mac OS X. I have some difficulties to
link the final files together. 

I had some .dll on windows, that I tried to compile and link to .bundles under
MAC. 

The linker than makes errors for double definitions when I link the final
application file. 

Did anyone port already .dll form window to Mac OS X ?

What are convient options for the linking ? 

What are the corresponding Linker parameters in Xcode to tell the linker the depencies ?
In MS Visual C++ I used the project dependencies menu to tell build and link dependencies. 
In Xcode I use Direct Dependencies in the General Tab in the Target Info of my targets to add dependencies.
But I think this only influences that the depencies a build before, the resulting .dylib or .bundle is not added automatically to the -filelist. I had a look at that automatically generated file, the dependent project files are not in there. As the file is generated everytime, I do not know how to influence this. 

You are correct that dependencies only affect what is built and in what order.  To add link libraries to a project, you add the "products" of a target or subproject to your target by selecting them, choosing Get Info, going to the Targets tab, and checking the boxes for all targets they should be linked in to.

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How to handle link dependencies under Xcode vs. MS Visual C++ (From: email@hidden)

  • Prev by Date: Re: link error, how to include a target that was linked as -bundle
  • Next by Date: How to conditionally run a script based on build configuration
  • Previous by thread: How to handle link dependencies under Xcode vs. MS Visual C++
  • Next by thread: Re: How to handle link dependencies under Xcode vs. MS Visual C++
  • Index(es):
    • Date
    • Thread