[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help building and running a framework on Windows
From: |
Samantha Rahn |
Subject: |
Help building and running a framework on Windows |
Date: |
Sun, 10 Aug 2008 15:12:13 -0400 |
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
Examples.tar.gz
Description: GNU Zip compressed data
- Help building and running a framework on Windows,
Samantha Rahn <=