Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 26, 2006, 08:52 PM   #1
vgoklani
macrumors regular
 
Join Date: Jul 2004
Send a message via AIM to vgoklani
What is a framework?

I use the following command to link my C++ source code to the apple implementation of CLAPACK:

g++ -o code code.cpp -framework veclib

but what is a framework?
vgoklani is offline   0 Reply With Quote
Old Apr 26, 2006, 10:35 PM   #2
savar
macrumors 68000
 
savar's Avatar
 
Join Date: Jun 2003
Location: District of Columbia
Send a message via AIM to savar
Quote:
Originally Posted by vgoklani
I use the following command to link my C++ source code to the apple implementation of CLAPACK:

g++ -o code code.cpp -framework veclib

but what is a framework?
I don't know the dictionary definition, but a framework is usually a collection of libraries and the headers that declare the interfaces.
__________________
Mehce
savar is offline   0 Reply With Quote
Old Apr 26, 2006, 11:14 PM   #3
NewbieNerd
macrumors 6502a
 
Join Date: Sep 2005
Location: Chicago, IL
Send a message via AIM to NewbieNerd
I think a framework, at least on some level, is comparable to a Windows DLL, or dynamically linked library. Such a library exists as only one copy in memory, at least for the code segment of it, as opposed to statically linked libraries which are copied with every applicatioin that uses it. Though DLLs aren't completely better, they tend to be as you can update the DLLs and all programs depending on them see the benefit without any recompiling/relinking.

So when you include NSObject.h in a file and compile, linking to the Foundation framework, you are just using the copy of NSObject.c already in memory instead of making another copy.

Maybe a framework is completely different, hehe, but at least you know what a DLL is.
NewbieNerd is offline   0 Reply With Quote
Old Apr 27, 2006, 04:51 PM   #4
jeremy.king
macrumors 603
 
jeremy.king's Avatar
 
Join Date: Jul 2002
Location: Fox Lake, IL
ADC is always a good resource.

http://developer.apple.com/documenta...c/uid/20002303
jeremy.king is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Do you use a Front-End framework? ilian92 Web Design and Development 8 Apr 5, 2014 08:56 AM
QT Framework depreciated. larswik Mac Programming 4 Apr 4, 2014 04:55 PM
Quicktime Framework help Pat13 MacBook 5 Mar 2, 2013 08:08 PM
When to Create a Framework BadWolf13 Mac Programming 14 Oct 13, 2012 04:44 PM

Forum Jump

All times are GMT -5. The time now is 11:39 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC