- 浏览: 1481586 次
- 性别:
- 来自: 南京
文章分类
- 全部博客 (419)
- XMPP (19)
- Android (180)
- Java (59)
- Network (4)
- HTML5 (13)
- Eclipse (9)
- SCM (23)
- C/C++ (4)
- UML (4)
- Libjingle (15)
- Tools&Softwares (29)
- Linphone (5)
- Linux&UNIX (6)
- Windows (18)
- Google (10)
- MISC (3)
- SIP (6)
- SQLite (5)
- Security (4)
- Opensource (29)
- Online (2)
- 文章 (3)
- MemoryLeak (10)
- Decompile (5)
- Ruby (1)
- Image (1)
- Bat (4)
- TTS&ASR (28)
- Multimedia (1)
- iOS (20)
- Asciiflow - ASCII Flow Diagram Tool.htm (1)
- Networking (1)
- DLNA&UPnP (2)
- Chrome (2)
- CI (1)
- SmartHome (0)
- CloudComputing (1)
- NodeJS (3)
- MachineLearning (2)
最新评论
-
bzhao:
点赞123!
Windows的adb shell中使用vi不乱码方法及AdbPutty -
wahahachuang8:
我觉得这种东西自己开发太麻烦了,就别自己捣鼓了,找个第三方,方 ...
HTML5 WebSocket 技术介绍 -
obehavior:
view.setOnTouchListenerview是什么
[转]android 一直在最前面的浮动窗口效果 -
wutenghua:
[转]android 一直在最前面的浮动窗口效果 -
zee3.lin:
Sorry~~
When I build "call ...
Step by Step about How to Build libjingle 0.4
http://www.techotopia.com/index.php/Installing_and_using_GNUstep_and_Objective-C_on_Windows
In addition to using Objective-C on a Mac system, it is also possible to download and install the GNUstep and Objective-C environments for Microsoft's Windows family of operating systems. In this chapter we will explore the steps involved in downloading, installing and testing both Objective-C and GNUstep on Windows.
Downloading the GNUstep Packages
The GNUstep environment is made available on Windows using a toolkit called MinGW. MinGW is an abbreviation of Minimal GNU for Windows and essentially provides a port of the GNU compiler collection, including Objective-C support, and a minimal shell environment for Windows platforms. Installation of GNUstep involves installing both MinGW and GNUstep. Both of these packages are available from the GNUstep web site at http://www.gnustep.org/experience/Windows.html .
The MinGW package is contained in the GNUstep System download and the GNUstep core is contained, unsurprisingly, in the GNUstep Core download. Both must be downloaded before proceeding with the installation.
Installing MinGW and GNUstep on Windows
Once the required packages have been downloaded, locate the GNUstep System file and launch it to initiate the installation process. To complete the installation, simply follow the prompts in the installation wizard, using the default installation settings unless you have specific requirements. In particular, should you decide to install the package in a location other than C:\GNUstep, you will need to adjust the instructions in the remainder of this chapter accordingly.
Once MinGW is installed, repeat the process for the GNUstep Core package.
Running the GNUstep Shell
To begin using Objective-C and GNUstep, start the GNUstep shell by selecting Start -> All Programs -> GNUstep -> Shell . Once loaded, the shell will appear as follows:
Testing the Installation
The shell environment is a minimalist version of the shell environment you might find on a Linux or Unix system. If you are unfamiliar with such an environment then it is unlikely you will want to perform the code editing in this window. Fortunately, it is still possible to use your favorite editor on Windows.
When the shell is first started, it places you in the home directory for the GNUstep/MinGW environment. In terms of the Windows file system, and assuming you used the default installation location for MinGW and GNUstep, this is equates to:
C:\GNUstep\home\<username>
Where <username> is the name by which you logged into the Windows system. To create a simple application, open a suitable editor (Notepad will do) and enter the following code:
#import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSLog (@"hello world"); [pool drain]; return 0; }
Once the code has been entered, save the file in your GNUstep home directory (as outlined above) as hello.m . If you used Notepad, be sure to switch the Save as Type option to All Files so that the file is not given a .txt file name extension.
Once the code has been written and saved, it can be compiled from the GNUstep shell window by entering the following command:
$ gcc `gnustep-config --objc-flags` -L /GNUstep/System/Library/Libraries hello.m -o hello -lgnustep-base -lobjc
Assuming a successful compilation, run the application as follows:
./hello.exe
When executed, the test program should produce output similar to:
2009-09-24 14:31:25.721 hello[2200] hello world
发表评论
-
Nuance - Dragon Mobile SDK - Speech Kit
2012-07-02 15:57 1369http://dragonmobile.nuancemobil ... -
iOS的开源库和开源项目
2012-06-14 10:54 982http://www.cocoachina.com/iphon ... -
[iOS开发教程-5]Create Indexed UITableView
2012-06-13 16:31 1705http://www.iphonedevcentral.com ... -
[iOS开发教程-4]Create a UITabBarController from scratch
2012-06-13 15:20 1387http://www.iphonedevcentral.com ... -
[iOS开发教程-3]Create a Detail View Page using UIImageView, UITextView and UILabel
2012-06-13 14:11 2089http://www.iphonedevcentral.com ... -
[iOS开发教程-2]Customize that UIViewCell – Part 1: Using Interface Builder
2012-06-13 13:00 1434http://www.iphonedevcentral.com ... -
[iOS开发教程-1]Hello UITableView!
2012-06-13 11:12 2026http://www.iphonedevcentral.com ... -
Window 7主机与VMware中Mac虚拟机共享文件夹
2012-06-08 23:28 190981. 确保针对Mac虚拟机的VMware Tools的安装 ... -
VMware 8.02虚拟机安装MAC lion 10.7.3教程 附送原版提取镜像InstallESD.iso!
2012-06-08 23:14 6328http://www.winthink.net/thread- ... -
[iOS]深入浅出 iOS 之多线程 NSThread
2012-06-08 15:30 21244http://www.cocoachina.com/bbs/r ... -
Object-C中的Selector概念
2012-06-08 15:25 1051selector可以叫做选择器,其实指的就是对象的方法,也 ... -
CodeBlocks集成Objective-C
2012-06-05 23:35 1158http://www.jxva.com/?act=blog!a ... -
用ultraEdit打造自己的Objective-C IDE for Windows
2012-06-05 21:41 1452http://blog.csdn.net/tomatofly/ ... -
Windows下UltraEdit查看Objective-C代码高亮工具
2012-06-05 21:26 2447http://www.cocoachina.com/bbs/r ... -
Objective-C 编程教程(全)
2012-06-04 23:32 1244http://www.youku.com/playlist_s ... -
iPhone开发学习笔记
2012-06-04 22:15 2622http://blog.csdn.net/huanglx198 ... -
GNUStep
2012-06-04 16:45 1212http://www.gnustep.org/ T ... -
Objective C programming in Windows – GNUStep & ProjectCenter
2012-06-04 16:12 1119http://www.jaysonjc.com/program ... -
The Objective-C Programming Language
2012-06-03 19:31 988http://developer.apple.com/libr ...
相关推荐
安装mumax3最全教程
Prepare for Microsoft Exam 70-410 – and help demonstrate your real-world mastery of implementing and configuring core services in Windows Server 2012 R2. Designed for experienced IT professionals ...
eCos RedBoot guide-A guide for installing and using RedBootdebug and bootstrap firmware.eCos操作系统redboot源码详细说明及使用移植说明
gnuplot画图软件windows版本,本人已安装使用,没问题。
用与解决错误: Error Code 0x800F081F when Installing .NET Framework 3.5
openedx 运行手册
mcsa考试题库。exam:70-410 。Installing and Configuring Windows Server 2012 R2
Then assess yourself using 300+ practice and review questions on the CD, featuring multiple, customizable testing options to meet your specific needs. Choose timed or untimed testing mode, generate ...
Installing JUnit In Action Examples in Eclipse using SVN -------------------------------------------------------- 1 Install Eclipse 3.0+ Installing Ant -------------- 1 Download the latest Ant ...
Installing JUnit In Action Examples in Eclipse using SVN -------------------------------------------------------- 1 Install Eclipse 3.0+ Installing Ant -------------- 1 Download the latest Ant ...
Installing JUnit In Action Examples in Eclipse using SVN -------------------------------------------------------- 1 Install Eclipse 3.0+ Installing Ant -------------- 1 Download the latest Ant ...
Installing JUnit In Action Examples in Eclipse using SVN -------------------------------------------------------- 1 Install Eclipse 3.0+ Installing Ant -------------- 1 Download the latest Ant ...
Installing JUnit In Action Examples in Eclipse using SVN -------------------------------------------------------- 1 Install Eclipse 3.0+ Installing Ant -------------- 1 Download the latest Ant ...
Installing JUnit In Action Examples in Eclipse using SVN -------------------------------------------------------- 1 Install Eclipse 3.0+ Installing Ant -------------- 1 Download the latest Ant ...
70 410认证考试辅导书,写的比较浅显易懂,是英文的。
Installing and Configuring Windows Server 2012 Lab Manual
插件方式安装 zend studio,PDF文档
70-410 Installing and Configuring Windows Server 2012