discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking Frameworks


From: Andreas Hoeschler
Subject: Re: Linking Frameworks
Date: Thu, 11 Mar 2004 12:52:27 +0100

Hi,

I'm fairly certain this has been dicussed/documented somewhere, but after a few hours of searching, I am still at a loss.
I am writing an application that depends on a framework.

In the application's GNUmakefile I have:

APP_NAME = myApp
PACKAGE_NAME = ${APP_NAME}

SUBPROJECTS = myFramework

...

ADDITIONAL_INCLUDE_DIRS += -framework myFramework
myApp_GUI_LIBS += -framework myFramework

include $(GNUSTEP_MAKEFILES)/aggregate.make
include $(GNUSTEP_MAKEFILES)/application.make

The framework compiles just fine and sits in myFramework/myFramework.framework But when it tries to link myApp, the linker gives the following error and dies:
        /usr/bin/ld: cannot open myFramework: File format not recognized

Presumably this is because the -framework flag is not causing the same behaviour it does on OS X. So how should I modify the makefile in order to actually have it link in the framework?

Try the following

myApp_GUI_LIBS += -lmyFramework

and omit you ADDITIONAL_INCLUDE_DIRS line. You don't need it.

Further, on OS X it is possible for a framework to live inside an application bundle, how can I get this behaviour?

No idea! Please let me know if you find that out.

Regards,


  Andreas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]