Linking with Mac OSX system frameworks

Help
2007-04-26
2013-04-24
  • I am trying to set up an automated build using ANT and CPPTasks on both
    Windows and Mac.  Currently working with Mac and I'm having some troubles
    figuring out how to link in system frameworks.  The gcc compiler has an
    argument "-framework <path to system sdk>" but I don't know how to make CPPTasks
    pick this up.  Can you point me in the right direction?

     
    • Rashi
      Rashi
      2007-04-27

      Under <cc> tasks you can specify frameworks in this manner:

      <cc>
      ...
         <libset libs="Carbon" dir="/System/Library/Frameworks" type="framework">
      ...
      </cc>

       
      • So my frameworks are located under: /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
        I tried both: <libset dir="/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/" libs="Carbon,Appkit,IOKit" type="framework" />
        AND <libset dir="/System/Library/Frameworks/" libs="Carbon,Appkit,IOKit" type="framework" /> but I still get linking errors complaining about finding 'std::*'. 

        Is there something I'm doing wrong here?  Any ideas?

         
    • Nevermind, this does work for me.  I had something else broken =)