Play Objective-c with GNUstep in windows
2011-02-25 22:33
295 查看
Use NS (NeXtStep) Object in source.m, like:
creat a file in the folder where source.m at,named "GNUmakefile" with code:
- in console -
compile with command : make
run the app with command: ./obj/appname
source.m
get info = > Hello World!
NSString *hello = @"Hello World!";//a NS string object
creat a file in the folder where source.m at,named "GNUmakefile" with code:
include $(GNUSTEP_MAKEFILES)/common.make TOOL_NAME = appname appname_OBJC_FILES = source.m include $(GNUSTEP_MAKEFILES)/tool.make
- in console -
compile with command : make
run the app with command: ./obj/appname
source.m
#include<stdio.h> #include<Foundation/Foundation.h> int main(void){ NSString *helloString = @"Hello World!"; printf("%s/n",[helloString cString]); return 0; }
get info = > Hello World!
相关文章推荐
- Objective C programming in Windows – GNUStep & ProjectCenter
- With Visual Studio, Open Same File In Two Windows, Updates Reflected in Both
- Run Android apps in Windows, OS X, Linux with Chrome (and a modified runtime)
- Working with Windows Workflow Foundation in ASP.NET
- How to deal with Windows Schedule&Task by PowerShell in Win7
- Windows XP Targeting with C++ in Visual Studio 2012
- Virtualbox mouse move in and out and file share with windows
- Error occurred in deployment step 'Activate Features': Feature with Id '{GUID}' is not installed in this farm, and cannot be added to this scope.
- glib-2.49.4 static build step in windows XP
- Using ELMAH in Windows Azure with Table Storage
- linux in the virtual machine share folders with Windows
- 在GNUstep+Windows XP环境下学习Object-C
- error: command 'x86_64-linux-gnu-gcc' failed with exit status 1” in virtualenv
- The study of chapter 13 in programming windows with mfc-printing with document and views
- ReadConsoleInputA no longer works correctly with DBCS in Windows 8.1
- Integrate Apache storm with zookeeper in windows
- Objective-C学习笔记1--windows+GNUstep环境下不能使用@autoreleasepool?
- Pro WPF in C# 2008: Windows Presentation Foundation with .NET 3.5, Second Edition
- compile qt program with QTopengl in windows
- With Visual Studio, Open Same File In Two Windows, Updates Reflected in Both