On Sun, Aug 10, 2008 at 3:12 PM, Samantha Rahn
<samantha.rahn@gmail.com> wrote:
Hello,
I am trying to create:
1) a framework with one object in it that has one class method and one C function.
2) a tool which loads the DLL and invokes the class method and the C function.
My code builds, but does not execute properly. GDB says "unknown target exception".
Setup:
OS: Windows 2003 Server
1. gnustep-system-0.19.2-setup.exe
2. gnustep-core-0.19.2-setup.exe
3. SystemPreferences-1.0.2-2-setup.exe (it runs fine)
Environment:
GNUSTEP_INSTALLATION_DOMAIN=USER
GNUSTEP_MAKEFILES=/GNUstep/System/Library/Makefiles
GNUSTEP_SYSTEM_ROOT=C:/GNUstep
Path:
C:\GNUstep\bin
C:\GNUstep\local\bin
C:\GNUstep\mingw\bin
C:\GNUstep\GNUstep\Local\Tools
C:\GNUstep\GNUstep\System\Tools
// FILE: MyFrameworkObject.m
void myroutine( void )
{
printf ("I'm in the routine.\n");
}
@implementation MyObject
+ (void)run
{
NSLog(@"Hello!\n");
}
@end
// EOF
// FILE: MyToolMain.m
int
main(int argc, const char *argv[])
{
id pool = [[NSAutoreleasePool alloc] init];
myroutine(); // from framework
[MyObject run]; // from framework
[pool release];
return 0;
}
// EOF
Builds fine.
Running, I get
gdb: unknown target exception
Attached are the actual sources and makefiles for the framework and the tool.
Thanks so much for any help!
Samantha