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




On 27-Jul-05, at 2:33 PM, Josef Henryson wrote:

Hi,

This is slightly off topic, my excuses for that, but I need to know this to proceed with my JNI library.

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.

When I compile the same library with Xcode, everything works fine. I found in the 'project.pbxproj' the line: HEADER_SEARCH_PATHS = / Developer/Headers/FlatCarbon; but I have no idea how Xcode passes this to the gcc compiler.

This doesn't solve your problem but it may give you more info for a solution. You can see what XCode used:


1) Build->Build Results. This displays XCode's summary window of build activity and results.
2) There are two panes in the 'Build Results' window. At the bottom- left of the top-pane there are 4 icons: tick-mark, Yellow triangle/ warning, text-icon and a down-arrow.
3) Click on the text-icon.
4) You should see another pane appear (it may be small and need resizing). This pane shows the command-line executed by XCode. From here you can see every parameter passed to gcc, jam or any other tool XCode uses.




Rob

_______________________________________________
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>)



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.