OSX Undefined Sybols error

Hi there,

I’m trying to compile in SDL for the first time and I keep getting:

Undefined symbols: _CGMainDisplayID referenced from SDL expected to be
defined in Carbon

What can I do to fix this error?

Thanx
Pelayo Besa–

“The ships hung in the sky in much the same way that bricks don’t.”
-Douglas Adams, “The Hitchhiker’s Guide to the Galaxy”

I’m trying to compile in SDL for the first time and I keep getting:

Undefined symbols: _CGMainDisplayID referenced from SDL expected to
be defined in Carbon

What can I do to fix this error?

First you should mention which version of Mac OS X you’re using, which
version of SDL you’re attempting to compile, and which toolchain you’re
attempting to compile it with (autoconf, Project Builder, Xcode,
CodeWarrior).

-bobOn Apr 25, 2005, at 12:45 AM, Pelayo Besa wrote:

Sorry about that. :stuck_out_tongue:

I’m on Mac Os X 10.1.5
Running SDL 1.2.8
on Project Builder 2.0

It’s a strange error that I keep getting when I try to compile code.

Any help is welcome. Thanx!
PelayoOn 4/24/05, Bob Ippolito wrote:

On Apr 25, 2005, at 12:45 AM, Pelayo Besa wrote:

I’m trying to compile in SDL for the first time and I keep getting:

Undefined symbols: _CGMainDisplayID referenced from SDL expected to
be defined in Carbon

What can I do to fix this error?

First you should mention which version of Mac OS X you’re using, which
version of SDL you’re attempting to compile, and which toolchain you’re
attempting to compile it with (autoconf, Project Builder, Xcode,
CodeWarrior).

-bob

“The ships hung in the sky in much the same way that bricks don’t.”
-Douglas Adams, “The Hitchhiker’s Guide to the Galaxy”

??I’m trying to compile in SDL for the first time and I keep getting:

??Undefined symbols: _CGMainDisplayID referenced from SDL expected to
be defined in Carbon

??What can I do to fix this error?

First you should mention which version of Mac OS X you’re using, which
version of SDL you’re attempting to compile, and which toolchain
you’re
attempting to compile it with (autoconf, Project Builder, Xcode,
CodeWarrior).

I’m on Mac Os X 10.1.5
Running SDL 1.2.8
on Project Builder 2.0

CGMainDisplayID() is not supported on Mac OS X 10.1. SDL currently
uses kCGDirectMainDisplay in SDL_QuartzVideo.m, which is a macro that
calls CGMainDisplayID(). This code would need to be changed to use
CGGetActiveDisplayList(…) instead if it were to become Mac OS X 10.1
compatible. Obviously nobody else cares about Mac OS X 10.1, so you’d
have to actively make sure that SDL CVS remains 10.1 compatible or else
it probably won’t be.

I’d recommend that you simply upgrade to a newer version of Mac OS X,
especially considering Mac OS X 10.4 will be available later this week.

-bobOn Apr 25, 2005, at 10:37 AM, Pelayo Besa wrote:

On 4/24/05, Bob Ippolito <@Bob_Ippolito> wrote:

On Apr 25, 2005, at 12:45 AM, Pelayo Besa wrote:

Thanx. Yea, I was going to upgrade soon anyway, I was just trying to get it
to run so I could learn now :stuck_out_tongue:

Thanks for you help!
-PelayoOn 4/25/05, Bob Ippolito wrote:

On Apr 25, 2005, at 10:37 AM, Pelayo Besa wrote:

On 4/24/05, Bob Ippolito wrote:

On Apr 25, 2005, at 12:45 AM, Pelayo Besa wrote:

I’m trying to compile in SDL for the first time and I keep getting:

Undefined symbols: _CGMainDisplayID referenced from SDL expected to
be defined in Carbon

What can I do to fix this error?

First you should mention which version of Mac OS X you’re using, which
version of SDL you’re attempting to compile, and which toolchain
you’re
attempting to compile it with (autoconf, Project Builder, Xcode,
CodeWarrior).

I’m on Mac Os X 10.1.5
Running SDL 1.2.8
on Project Builder 2.0

CGMainDisplayID() is not supported on Mac OS X 10.1. SDL currently
uses kCGDirectMainDisplay in SDL_QuartzVideo.m, which is a macro that
calls CGMainDisplayID(). This code would need to be changed to use
CGGetActiveDisplayList(…) instead if it were to become Mac OS X 10.1
compatible. Obviously nobody else cares about Mac OS X 10.1, so you’d
have to actively make sure that SDL CVS remains 10.1 compatible or else
it probably won’t be.

I’d recommend that you simply upgrade to a newer version of Mac OS X,
especially considering Mac OS X 10.4 will be available later this week.

-bob

“The ships hung in the sky in much the same way that bricks don’t.”
-Douglas Adams, “The Hitchhiker’s Guide to the Galaxy”