discuss-gnustep
[Top][All Lists]
Advanced

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

Linking Frameworks


From: J . Aaron Pendergrass
Subject: Linking Frameworks
Date: Mon, 8 Mar 2004 12:06:49 -0500

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello all,
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? Further, on OS X it is possible for a framework to live inside an application bundle, how can I get this behaviour?

Thanks,
aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFATKgsI2nxyLuy2rwRAvjHAJoCe0h/bPkw93lEtYe1IXEyaBUWDgCglrZj
+cwtl5ZI/TtocbrjOwqexiY=
=I3rt
-----END PGP SIGNATURE-----





reply via email to

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