• 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 do I use -l in makefiles to link to frameworks?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I use -l in makefiles to link to frameworks?


  • Subject: Re: How do I use -l in makefiles to link to frameworks?
  • From: Eric Albert <email@hidden>
  • Date: Tue, 29 Jun 2004 00:48:41 -0700

On Jun 28, 2004, at 10:25 AM, Karan, Cem (Civ, ARL/CISD) wrote:

The problem is that GLUT is supplied as a framework; this makes it much easier to package and use from XCode and other IDEs, but I have no idea how to properly use them in a makefile.

Note that I can easily convert all of this to work under XCode, but I want to know how to use the command line tools to link to frameworks.

You can link to a framework named 'foo' by adding '-framework foo' to your link line, much as you'd use -lfoo to link to a library named 'libfoo.dylib'. If you need to point the compiler and linker to a non-standard directory that contains frameworks, you'd use the -F flag, much as you'd use -L to point them to a non-standard directory containing libraries.


That said, I thought GLUT was usually supplied as a library on Mac OS X....

-Eric, who knows next to nothing about OpenGL
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


References: 
 >How do I use -l in makefiles to link to frameworks? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)

  • Prev by Date: re: memory changed break points
  • Next by Date: Re: MallocDebug is a bit to strict when launching an app
  • Previous by thread: How do I use -l in makefiles to link to frameworks?
  • Next by thread: MallocDebug error - getUnreferencedData [19780]
  • Index(es):
    • Date
    • Thread