progress on sdl &nlffi

brian <briand-/[email protected]>
Newsgroups gmane.comp.lang.sml.smlnj
Message-ID <[email protected]>
I have a basic framework put together and can successfully perform  
SDL_Init

Here's the problem:

2007-01-14 20:50:49.812 run.ppc-darwin[7312] *** _NSAutoreleaseNoPool 
(): Object 0x32bda0 of class NSMutableParagraphStyle autoreleased  
with no pool in place - just leaking
...

ad nauseum, until:

...
2007-01-14 20:50:49.835 run.ppc-darwin[7312] *** Uncaught exception:  
<NSInternalInconsistencyException> Error (1002) creating CGSWindow
/usr/local/smlnj/bin/sml: Fatal error -- bogus fault not in ML: sig =  
5, code = 0, pc = 0x9295f120)

Well - I believe SML.  The problem almost certainly has something to  
do with the improper, or lack of, intialization of the underlying MAC  
graphics layer.  However this is very odd, because I do NOT get any  
link errors when I "sml -m sdl.cm", which tells me that SDL thinks  
everything is there...

The reason I am relatively certain that this is probably a library/ 
link related error is because SDL needs this:

    -L/sw/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -Wl,-framework,OpenGL

when linking for a C program.  Since the nlffi implementation _only_  
include "SDL" and none of the other libs, I suspect something which  
is supposed to be loaded already is not.  Important note:  I have  
successfully built a working app with SDL in C.

So I am _very_ fuzzy on if there is a way to get nlffi to link-in  
multiple libraries.
Naturally if somebody knows what the problem _really_ is, nevermind  
what I think it is, please let me know :-)


Thanks

Brian




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.