Hello RK, first of all thank you for your reply and advice. I am currently 
using gnustep-tools-windows-msvc, but the program does not work properly using 
code that involves objects, such as the following code:
|
@interface HelloWorld : NSObject
- (void)sayHello;
@end


@implementation HelloWorld
- (void)sayHello {
NSLog(@"Helo RK");
}
@end


int main() {
printf("1111111111111111111111111111111111111\n");
HelloWorld *hello = [[HelloWorld alloc] init];
        printf("222222222222222222222222222222222\n");
[hello sayHello];
printf("3333333333333333333333333333333333333\n");


return 0;
}


|


log
|
C:\demo>a.exe
1111111111111111111111111111111111111


C:\demo>echo %errorlevel%
-1073741819


|

All the gnustep libraries and compilation commands I use are provided by 
https://github.com/gnustep/tools-windows-msvc.

This means that the program is terminated after only the first printf statement 
is executed. I have tested this code on linux and it is fully compiled and run 
properly. Do you know what is going on here? Thanks!




Best regards!

Reply via email to