• 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
Linking to dylib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linking to dylib


  • Subject: Linking to dylib
  • From: Mark Woollard <email@hidden>
  • Date: Mon, 9 Sep 2002 14:51:13 +0100

I'm new to PB + Mac etc.

This is not really a Cocoa question but there is Cocoa code in the overall project and this list seems to be my best source of Mac OSX experts, so I thought I'd ask...

I'm trying to link my app to a dylib but cannot figure out how to get the PB project to link to it correctly. I have a lib say x.dylib, I have added this to the PB project and it flags it as a library with a L in the box icon. I've also added the path to the library paths for the target. Building I get:

/usr/bin/libtool: can't locate file for: -lx
/usr/bin/libtool: file: -lx is not an object file (not allowed in a library)

If its significant the project builds another dylib.

This code is being ported from a Win32 application, I've already got it all built under linux with gcc but am a bit stuck with OSX. I wonder if I should be building a framework rather than a dylib.

Also, how do you get the output of the link stage into the PB build panel? All I get is 'Build failed, see build log for details' but I've been unable to figure out how to access this build log. I have to build using pbxbuild to see what's really going on.

Thanks for any input...

Mark
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Linking to dylib
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: Issue with NSPrintInfo values being weird...
  • Next by Date: QuickDraw and Cells
  • Previous by thread: [NEWBIE] When changing a view's size...
  • Next by thread: Re: Linking to dylib
  • Index(es):
    • Date
    • Thread