Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Link Carbon framework from gcc



Thank you all that responded to my mail. 

The build results output in Xcode was good to read. I also had the -framework in the wrong place, that's why -F didn't cause a warning so I thought -framework was the wrong flag. 

My problem turned out to be a wrong define, the file that included the Carbon.h looked like this:

#ifdef TARGET_API_MAC_CARBON
#ifdef _GNUC_                // GCC compiler includes
#include <Carbon/Carbon.h>
#elif __MWERKS__            // Metroworks Codewarrior compiler includeds
...

when _GNUC_ should be __GNUC__ (double underscores). 

Incompetent colleagues... ;-)

Cheers, Josef

On Jul 27, 2005, at 23:39 , Michael Hall wrote:


On Jul 27, 2005, at 1:33 PM, Josef Henryson wrote:



I use a Makefile and gcc (tried 3.3 & 4.0) to compile a JNI-enabled dynamic library and a few classes are dependent on the Carbon framework for file handling. I pass -FCarbon and I also tried -FCoreServices but I still get errors and my conclusion is that the Carbon frameworked can not be found/linked. I also tried -I/Developer/Headers/FlatCarbon without success.


-framework Carbon

if interested reference
http://sourceforge.net/projects/macnative      java class: jnidirect.Linker
or
http://www.spacestar.net/users/mikehall/Combined.zip    Source folder: org.wrap.gccWrapImpl

Mike Hall        email@hidden





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Link Carbon framework from gcc (From: Josef Henryson <email@hidden>)
 >Re: Link Carbon framework from gcc (From: Michael Hall <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.