|
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) |
@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; } |
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!
[Prev in Thread] | Current Thread | [Next in Thread] |