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: Cross-platform Linux/OS X Development w/ SDL



> From: Achal Oza 
> This is a very poor Makefile since I really should be building the
> object files separately but I'm not quite sure how to because of the .m
> file:

You can create object files with .m files just as you do with .c and .cpp files.
.m is an Objective-C file. Objective C is a pure superset of C so it
has interesting properties.

Then in the link stage of your make file, just list the object file
like all your others. As long as you remember to also link -framework
Cocoa, everything should link correctly.

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

This email sent to 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.