SDL Forum Index
SDL
Simple DirectMedia Layer Forums
Reply to topic
Linking error with SDL 1.2 on MacOS X 10.4.11
Nik


Joined: 08 Dec 2014
Posts: 9
Reply with quote
View user's profileSend private messageVisit poster's website
Linking error with SDL 1.2 on MacOS X 10.4.11
Nik


Joined: 08 Dec 2014
Posts: 9
Reply with quote
Hello,

okey forum works again....

I want to port my Linux SDL 1.2 programs to Mac OS X. I have got a Mac Mini Intel Core Solo with Mac OS X 10.4.11, XCode 2.5 .

I have installed SDL-1.2.15-OSX10.4.dmg (Intel/PPC 10.4). When compiling and linking with the following makefile:

test:

gcc -I/Library/Frameworks/SDL.framework/Headers -c test.c SDLmain.m


gcc -L/Library/Frameworks/SDL.framework/ -o test test.o SDLmain.o -framework SDL -framework Cocoa

Compiling works fine but I am getting the following linker error:

/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
_CGDisplayCopyAllDisplayModes referenced from SDL expected to be defined in ApplicationServices
_CGDisplayCopyDisplayMode referenced from SDL expected to be defined in ApplicationServices
_CGDisplayModeCopyPixelEncoding referenced from SDL expected to be defined in ApplicationServices
_CGDisplayModeGetHeight referenced from SDL expected to be defined in ApplicationServices
_CGDisplayModeGetWidth referenced from SDL expected to be defined in ApplicationServices
_CGDisplayModeRelease referenced from SDL expected to be defined in ApplicationServices
_CGDisplayModeRetain referenced from SDL expected to be defined in ApplicationServices
_CGDisplaySetDisplayMode referenced from SDL expected to be defined in ApplicationServices
collect2: ld returned 1 exit status
make: *** [test] Error 1

Using

gcc -L/Library/Frameworks/SDL.framework/ -L/System/Library/Frameworks/ApplicationServices.framework/ -o test test.o SDLmain.o -framework ApplicationServices -framework SDL -framework Cocoa

doesn't work either.

Can somebody help?


Regards

Nik
View user's profileSend private messageVisit poster's website
Linking error with SDL 1.2 on MacOS X 10.4.11
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic