gnustep

    3热度

    1回答

    我想在Ubuntu上编译Objective C中的程序,我已经安装了GNUstep,设置了所有GNUSTEP_*环境变量,并安装了叮当声,因为我读过gcc无法编译带有块的Objective-C代码(Objective-C'匿名'函数,只是要清楚:^ { })。 我能得到什么,当我运行此命令: clang hello.m -o hello 是: hello.m:1:9: fatal error: '

    3热度

    4回答

    在编译的Objective-C与GNUstep的/ MinGW的我得到以下错误: The procedure entry point __printf__ could not be located in the dynamic link library libintl-8.dll. 的Windows 7/64位。 libintl-8.dll上的文件版本是0.18.1。 编译器是否使用正确的文件

    0热度

    1回答

    我正在编译我的第一个Objective-C程序。这只是简单的“编程很有趣!”代码: #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSLog (

    1热度

    1回答

    我正在尝试GNUstep。如果它运行良好,我会尝试使用它创建一个网站。无论如何,我从第一次被卡住了。 GNUstep NSRunLoop实现似乎不能很好地工作。 这是我的代码。 #import <Foundation/Foundation.h> @interface AAA : NSObject - (void)test1:(id)s; @end @implementation AAA

    3热度

    2回答

    我在Windows上测试一些简单的Objective-C代码(cygwin,gcc)。此代码已在Mac上的Xcode中起作用。我想将我的对象转换为不是NSObject的子类(或其他任何东西,大声笑)。这是可能的,以及如何? 我到目前为止有: // MyObject.h @interface MyObject - (void)myMethod:(int) param; @end 和 /

    1热度

    2回答

    基本上,我跟着这里的说明:http://wiki.gnustep.org/index.php/GNUstep_under_Ubuntu_Linux 为建设GUI和背面的额外步骤。 如果我构建并运行非gui程序,一切运行良好。只有当我补充一点,就是使用图形用户界面,如下所示: // Created by Tobias Lensing on 2/22/13. #import <Foundation/

    0热度

    1回答

    我开始学习Objective-C,和我试图编译这段代码在Debian喘息与海湾合作委员会(GNUstep的): #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]

    2热度

    1回答

    我拿了一些例子如何在Objective-c中使用RegularExpression。 问题是我想为Linux(gnustep)和OSX使用相同的代码。 经过小小的改动后,它可以在OSX上运行,但不能在Linux下运行。 NSArray* matches = [regex matchesInString:line options:0 range: NSMakeRange(0,[li

    1热度

    2回答

    Objective-C的代码,所以我有这样的一段代码... /** * cdb.m * Copyright (C) 2013 Naveen Mathew. All rights reserved. */ #import <objc/Object.h> #import "cdb.h" #import <stdio.h> #import <stdlib.h> @implementa

    1热度

    1回答

    我已经看过似乎相关的类,但是不清楚是否存在与用于TCP/UDP套接字的管道相当的类。 Socket类的描述似乎不只是做你需要创建和绑定一个端口并设置监听。目前我已经在直接的unix网络原语中实现了这一点...但如果我的Socket与Pipe实际上是相同的API,那将会很好。 其他人如何处理?我误解了Socket的用途吗? 这是一个我不想复杂的情况,只是标准IP网络的标准OO覆盖。