I can’t seem to manage to build an SDL application no matter what I do.
I made a new Cocoa Application. I added the framework.
I set the proper .nib file. I added the Header and Framework paths.
I have a VERY simple program consisting of a single file, Main.c:
(Also, is it right that SDL.h doesn’t exist?)
#include <SDL_main.h>
int main(int argc, char *argv[])
{
return 0;
}
This simple program gives me the linker error: _main undefined.
-Randall
At 11:52 Uhr -0500 17.11.2001, Randall Leeds wrote:
I can’t seem to manage to build an SDL application no matter what I do.
I made a new Cocoa Application. I added the framework.
I set the proper .nib file. I added the Header and Framework paths.
I have a VERY simple program consisting of a single file, Main.c:
(Also, is it right that SDL.h doesn’t exist?)
#include <SDL_main.h>
int main(int argc, char *argv[])
{
return 0;
}
This simple program gives me the linker error: _main undefined.
Add SDLMain.m to your project.
Max–
Max Horn
Software Developer
email: mailto:Max_Horn
phone: (+49) 6151-494890
I’m not seeing an SDLMain.m file anywhere on my HD.
I installed the 1.2.3 Developer Runtime thrice.On Saturday, November 17, 2001, at 12:04 PM, Max Horn wrote:
At 11:52 Uhr -0500 17.11.2001, Randall Leeds wrote:
I can’t seem to manage to build an SDL application no matter what I do.
I made a new Cocoa Application. I added the framework.
I set the proper .nib file. I added the Header and Framework paths.
I have a VERY simple program consisting of a single file, Main.c:
(Also, is it right that SDL.h doesn’t exist?)
#include <SDL_main.h>
int main(int argc, char *argv[])
{
return 0;
}
This simple program gives me the linker error: _main undefined.
Add SDLMain.m to your project.
Max
Max Horn
Software Developer
email: <mailto:max at quendi.de>
phone: (+49) 6151-494890
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
At 12:11 Uhr -0500 17.11.2001, Randall Leeds wrote:
I’m not seeing an SDLMain.m file anywhere on my HD.
I installed the 1.2.3 Developer Runtime thrice.
As Darrell pointed out earlier - the project builder stuff in 1.2.3
is somewhat broken, a fixed version should be availble soon.
I haven’t tried to use the Runtime version, it is possible that this
doesn’t contain SDLMain.m, in that case, get the file from the source
distro.
Max–
Max Horn
Software Developer
email: mailto:Max_Horn
phone: (+49) 6151-494890
Since the 1.2.3 release we’ve had some problems with building from the
developer package. I’ve attempted to fix Project Builder related issues
that have been mentioned on this list and also those I found on my own.
If you use the project stationary, you should have a compilable example
immediately after installing without any messing around.
Please give these files a test run to help me find any additional
problems.
What I fixed:
-added correct application stationary
-precompile header after developer install
-fixed missing SDL.h in SDL.framework/Headers
-updated documentation
The Project Builder files: (drop into SDL12 folder and decompress):
http://icdweb.cc.purdue.edu/~walisser/macosx/PBProjects.tar.gz
The Developer Package (temporary URL, until libsdl.org is updated):
http://icdweb.cc.purdue.edu/~walisser/macosx/SDL-devel.pkg.tar.gz
Cheers,
Darrell
Since the 1.2.3 release we’ve had some problems with building from the
developer package. I’ve attempted to fix Project Builder related issues
that have been mentioned on this list and also those I found on my own.
If you use the project stationary, you should have a compilable example
immediately after installing without any messing around.
Please give these files a test run to help me find any additional
problems.
Darrell, thanks for all the hard work you’ve been doing.
I haven’t had chance to try out the new files, but I’ll post some
feedback when I get chance.
BTW, in-case anyone’s having trouble downloading the files, the links
posted below aren’t quite correct - there needs to be an “sdl” directory
before the macosx one…On Saturday, November 17, 2001, at 12:50 PM, Darrell Walisser wrote:
The Project Builder files: (drop into SDL12 folder and decompress):
http://icdweb.cc.purdue.edu/~walisser/macosx/PBProjects.tar.gz
The Developer Package (temporary URL, until libsdl.org is updated):
http://icdweb.cc.purdue.edu/~walisser/macosx/SDL-devel.pkg.tar.gz
David
Yes, thank you.On Saturday, November 17, 2001, at 01:53 PM, Torsten Giebl wrote:
You mean
The Project Builder files: (drop into SDL12 folder and decompress):
http://icdweb.cc.purdue.edu/~walisser/macosx/PBProjects.tar.gz
http://icdweb.cc.purdue.edu/~walisser/sdl/macosx/PBProjects.tar.gz