Re: How do I use -l in makefiles to link to frameworks?
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.