Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Another port (dynamic libraries?) problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another port (dynamic libraries?) problem



Hello,

[snip]


I actually just need the command line version, not the fancy application, so here's the makefile with the commented out lines being the lines from the linux makefile:

all: sdisplay

sdisplay: sdisplay.c
        gcc -I/Library/Frameworks/SDL.framework/Headers -o sdisplay
sdisplay.c SDLmain.m -framework SDL -framework Cocoa

## original compile command:
## sdisplay/sdisplay: sdisplay/sdisplay.c
##        cc -I/usr/include/SDL/ -o sdisplay/sdisplay -O2 -Wall
sdisplay/sdisplay.c -lSDL -lpthread

Does anyone know what I need to do to get the SDL library linked to
sdisplay?

I think it may work if you remove the -I option from the compile rule.

HTH,
Tony C.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
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 © 2011 Apple Inc. All rights reserved.