discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:Re: Is possible build latest gnustep from github rep on windows?


From: bellabs
Subject: Re:Re: Is possible build latest gnustep from github rep on windows?
Date: Tue, 4 Jul 2023 09:02:12 +0800 (CST)

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

[Prev in Thread] Current Thread [Next in Thread]