OS X 10.4.7 SDL OpenGL template not building

Hello-

I just installed the latest prebuilt SDL framework, along with the
XCode templates. I created a new SDL OpenGL Application from the
template.

On build, I get the Warnings:
/Users/awagner/Developer/sdl_test/atlantis/atlantis.c: In function
’Atlantis_Display’:
/Users/awagner/Developer/sdl_test/atlantis/atlantis.c:330: warning:
pointer targets in passing argument 1 of ‘DrawStr’ differ in signedness
/Users/awagner/Developer/sdl_test/atlantis/atlantis.c:335: warning:
pointer targets in passing argument 1 of ‘DrawStr’ differ in signedness
/Users/awagner/Developer/sdl_test/atlantis/atlantis.c:340: warning:
pointer targets in passing argument 1 of ‘DrawStr’ differ in signedness
/Users/awagner/Developer/sdl_test/atlantis/atlantis.c:345: warning:
pointer targets in passing argument 1 of ‘DrawStr’ differ in signedness

These are the lines:
DrawStr(glGetString(GL_VENDOR));
DrawStr(glGetString(GL_RENDERER));
DrawStr(glGetString(GL_VERSION));
DrawStr(glGetString(GL_EXTENSIONS));

At runtime I get the error:
sdl_test has exited due to signal 6 (SIGABRT).
[Session started at 2006-10-06 10:14:52 -0500.]
ZeroLink: unknown symbol ‘_SDL_malloc’

The SDL_*.frameworks are all in my /Library/Frameworks directory…

XCode is version 2.4

I tried again with the non-opengl template. I get no build warnings
or errors, but I get the same error at runtime:

[Session started at 2006-10-06 11:00:03 -0500.]
ZeroLink: unknown symbol ‘_SDL_malloc’

sdl_test2 has exited due to signal 6 (SIGABRT).

Any ideas?
Thanks,
DrewOn Oct 6, 2006, at 10:58 AM, Andrew Wagner wrote:

Hello-

I just installed the latest prebuilt SDL framework, along with the
XCode templates. I created a new SDL OpenGL Application from the
template.

On build, I get the Warnings:
/Users/awagner/Developer/sdl_test/atlantis/atlantis.c: In function
’Atlantis_Display’:
/Users/awagner/Developer/sdl_test/atlantis/atlantis.c:330: warning:
pointer targets in passing argument 1 of ‘DrawStr’ differ in
signedness
/Users/awagner/Developer/sdl_test/atlantis/atlantis.c:335: warning:
pointer targets in passing argument 1 of ‘DrawStr’ differ in
signedness
/Users/awagner/Developer/sdl_test/atlantis/atlantis.c:340: warning:
pointer targets in passing argument 1 of ‘DrawStr’ differ in
signedness
/Users/awagner/Developer/sdl_test/atlantis/atlantis.c:345: warning:
pointer targets in passing argument 1 of ‘DrawStr’ differ in
signedness

These are the lines:
DrawStr(glGetString(GL_VENDOR));
DrawStr(glGetString(GL_RENDERER));
DrawStr(glGetString(GL_VERSION));
DrawStr(glGetString(GL_EXTENSIONS));

At runtime I get the error:
sdl_test has exited due to signal 6 (SIGABRT).
[Session started at 2006-10-06 10:14:52 -0500.]
ZeroLink: unknown symbol ‘_SDL_malloc’

The SDL_*.frameworks are all in my /Library/Frameworks directory…

XCode is version 2.4

Hello Andrew,

Friday, October 6, 2006, 5:01:34 PM, you wrote:

I tried again with the non-opengl template. I get no build warnings
or errors, but I get the same error at runtime:

[Session started at 2006-10-06 11:00:03 -0500.]
ZeroLink: unknown symbol ‘_SDL_malloc’

sdl_test2 has exited due to signal 6 (SIGABRT).

Any ideas?

It means Xcode is a pain in the ass. Turn off ZeroLink in the build
settings and you will find that your project fails to link - but at
least you will find out what module is asking for this symbol.–
Best regards,
Peter mailto:@Peter_Mulholland

OK, figured it out. I had some old version of the SDL frameworks in
my /Library/Frameworks, and the new one in /System/Library/Frameworks
was being ignored. I wiped 'em all, re-installed the new one, and
made sure the XCode project was pointing to it. I still get the
buildtime warnings, but not the runtime error. I see dolphins! Neato!

DrewOn Oct 6, 2006, at 11:05 AM, Peter Mulholland wrote:

Hello Andrew,

Friday, October 6, 2006, 5:01:34 PM, you wrote:

I tried again with the non-opengl template. I get no build warnings
or errors, but I get the same error at runtime:

[Session started at 2006-10-06 11:00:03 -0500.]
ZeroLink: unknown symbol ‘_SDL_malloc’

sdl_test2 has exited due to signal 6 (SIGABRT).

Any ideas?

It means Xcode is a pain in the ass. Turn off ZeroLink in the build
settings and you will find that your project fails to link - but at
least you will find out what module is asking for this symbol.


Best regards,
Peter mailto:darkmatter at freeuk.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl