On 31/10/14 01:53, Ron wrote:
> Can anyone say what could be causing these errors?
>
> Running a gtk2 calculater emulator I get:
> RISC OS error:
> 'has suffered a fatal internal error (Window Manager is currently in
> use) and must quit immediately'
I would assume that the gtk2 program is a WIMP application, so you would
run it as such, ie, from an obey file that sets up the environment
(wimpslot, system variables, etc) and then runs the binary.
It sounds like you're trying to run it from a taskwindow which is I
believe a WIMP task and is why you get the Window Manager in use error.
> And then the TaskWindow outputs:
> Using 'dlopen' requires dynamic linking: Success
Are you static linking? dlopen doesn't work in static binaries; you have
to use dynamic linking. When static linking, the dlopen, dlsym and
dlclose functions are dummy versions that return an error like the one
above.
> (free42bin:134785469): GModule-CRITICAL **: g_module_symbol: assertion
> `module != NULL' failed
>
> (free42bin:134785469): GModule-CRITICAL **: g_module_close: assertion `module != NULL' failed
These are the result of dlopen failing.
> I've tried a few things in the makefile, but always the same errors.
If your program needs to load libraries at runtime using dlopen, then
dynamic linking is required.
Lee.
_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK
No comments:
Post a Comment