Re: Linking error with SDL 1.2 on MacOS X 10.4.11
"Nik" <[email protected]> Sun, 12 Mar 2017 12:09:16 +0000
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <[email protected]> |
--===============5993044851146511605==
Content-Type: multipart/alternative;
boundary="=_16e337c7de46f9d43ef4729e12066ca4"
--=_16e337c7de46f9d43ef4729e12066ca4
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
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
--=_16e337c7de46f9d43ef4729e12066ca4
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style type=3D"text/css">
<!--
/*
The original subSilver Theme for phpBB version 2+
Created by subBlue design
http://www.subBlue.com
NOTE: These CSS definitions are stored within the main page body so that =
you can use the phpBB2
theme administration centre. When you have finalised your style you could=
cut the final CSS code
and place it in an external file, deleting this section to save bandwidth=
.
*/
/* General page style. The scroll bar colours only visible in IE5.5+ */
body {
background-color: #;
font-family: ;
font-size: 11;
color: #;
}
/* General font families for common tags */
font,th,td,p { font-family: }
p, td { font-size : 11; color : #; }
a:link,a:active,a:visited { color : #; }
a:hover { text-decoration: underline; color : #; }
hr { height: 0px; border: solid # 0px; border-top-width: 1px;}
h1,h2 { font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif=
; font-size : 22px; font-weight : bold; text-decoration : none; line-height=
: 120%; color : #000000;}
/* This is the border line & background colour round the entire page */
.bodyline { background-color: #; border: 1px # solid; }
/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; line-height: 12px}
.gen,.genmed,.gensmall { color : #; }
a.gen,a.genmed,a.gensmall { color: #; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #; text-decoration: un=
derline; }
/* Forum title: Text and link to the forums used in: index.php */
.forumlink { font-weight: bold; font-size: 12px; color : #; }
a.forumlink { text-decoration: none; color : #; }
a.forumlink:hover{ text-decoration: underline; color : #; }
/* The content of the posts (body of text) */
.postbody { font-size : 12px; line-height: 18px}
a.postlink:link { text-decoration: none; color : # }
a.postlink:visited { text-decoration: none; color : #; }
a.postlink:hover { text-decoration: underline; color : #}
/* Quote & Code blocks */
.code {
font-family: ; font-size: 11px; color: #3FB753;
background-color: #; border: #; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; bo=
rder-bottom-width: 1px
}
.quote {
font-family: ; font-size: 11px; color: #444444; line-height: 125%;
background-color: #; border: #; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; bo=
rder-bottom-width: 1px
}
-->
</style>
</head>
<body>
<div class=3D"postbody">Hello,<br />
<br />
okey forum works again....<br />
<br />
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 .<br />
<br />
I have installed SDL-1.2.15-OSX10.4.dmg (Intel/PPC 10.4). When compiling an=
d linking with the following makefile:<br />
<br />
test:<br />
<br />
gcc -I/Library/Frameworks/SDL.framework/Headers -c test.c SDLmain.m <br />
<br />
<br />
gcc -L/Library/Frameworks/SDL.framework/ -o test test.o SDLmain.o -framewo=
rk SDL -framework Cocoa<br />
<br />
Compiling works fine but I am getting the following linker error:<br />
<br />
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:<br />
_CGDisplayCopyAllDisplayModes referenced from SDL expected to be defined in=
ApplicationServices<br />
_CGDisplayCopyDisplayMode referenced from SDL expected to be defined in App=
licationServices<br />
_CGDisplayModeCopyPixelEncoding referenced from SDL expected to be defined =
in ApplicationServices<br />
_CGDisplayModeGetHeight referenced from SDL expected to be defined in Appli=
cationServices<br />
_CGDisplayModeGetWidth referenced from SDL expected to be defined in Applic=
ationServices<br />
_CGDisplayModeRelease referenced from SDL expected to be defined in Applica=
tionServices<br />
_CGDisplayModeRetain referenced from SDL expected to be defined in Applicat=
ionServices<br />
_CGDisplaySetDisplayMode referenced from SDL expected to be defined in Appl=
icationServices<br />
collect2: ld returned 1 exit status<br />
make: *** [test] Error 1<br />
<br />
Using <br />
<br />
gcc -L/Library/Frameworks/SDL.framework/ -L/System/Library/Frameworks/Appli=
cationServices.framework/ -o test test.o SDLmain.o -framework ApplicationSe=
rvices -framework SDL -framework Cocoa<br />
<br />
doesn't work either.<br />
<br />
Can somebody help?<br />
<br />
<br />
Regards<br />
<br />
Nik</div>
</body>
</html>
--=_16e337c7de46f9d43ef4729e12066ca4--
--===============5993044851146511605==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
--===============5993044851146511605==--