[Note] GNUstep on Windows
1.下载与安装
www.gnustep.org/windows/installer.html
下载
GNUstep MSYS System
GNUstep Core
GNUstep Devel
并安装,全部安装在同一个文件夹下,如D:/GNUstep
2.配置
2.1 配置Compiler
Settings -> Compiler

Linker settings

Search directories

Toolchain exectables

Other compiler options
-fconstant-string-class=NSConstantString -std=c99

2.2 其他配置

Editor

@interface @implementation @end @class @selector @protocol @public @protected @private id BOOL YES NO SEL nil NULL self
添加关键字

为了能objective-c代码能着色,给objective-c的Filemasks增加*.m, 删除Matlab的*.m,这样IDE就能识别出*.m是objective-c文件了


新建一个Project

添加*.m到Source目录

3.测试
再新建一个Console Application项目,删除自带的main.c(去File Explorer里删),添加一个main.m,如果发现main.m是灰色的,点Build也没反应
-------------- Clean: Debug in objective (compiler: GNUstep GCC Compiler)--------------- Cleaned "objective - Debug" -------------- Build: Debug in objective (compiler: GNUstep GCC Compiler)--------------- Linking stage skipped (build target has no object files to link)
Nothing to be done (all items are up-to-date).
在main.m上右键, 选中Compile file 和 Link file,再次编译

ALL CLEAR!
Updated 2018-3-26 18:47
发现新增一个Fraction.h头文件和对应的Fraction.m文件后无法通过编译
将main.m 和 Fraction.m的 Compiler variable 改成 CC或者CPP
Fraction.h 的Compiler variable 改成 OBJC
Properties-->Advanced-->Compiler variable
务必记得每个.m和.h文件都要这么做
参考链接
https://blog.csdn.net/ldl22847/article/details/7482971
http://www.programering.com/a/MTNyczMwATY.html
http://www.voidcn.com/article/p-nmxwqrlk-tz.html
[Note] GNUstep on Windows的更多相关文章
- Windows 下使用 GNUstep 编译并运行 Objective-C 程序
今晚上开始看<Objective-C 程序设计(第4版)>这本书(OSChina 正在做此书的书评活动,详情请看这里),到现在为止看到第 7 章,于是想动手试试写两简单的程序编译跑跑看. ...
- UEFI Bootable USB Flash Drive - Create in Windows(WIN7 WIN8)
How to Create a Bootable UEFI USB Flash Drive for Installing Windows 7, Windows 8, or Windows 8.1 In ...
- Creating a radius based VPN with support for Windows clients
This article discusses setting up up an integrated IPSec/L2TP VPN using Radius and integrating it wi ...
- 【软件使用】Windows下的Objective-C集成开发环境搭建(IDE)
Objective-C是苹果软件的编程语言,想要上机学习.调试,有一个集成开发环境(IDE)方便很多.有三类方法搭建Objective-C的集成开发环境: 1) 使用苹果的平台,集成开发环境使用X ...
- 【Objective-C】Windows下Objective-C开发环境配置
[Objective-C]Windows下Objective-C开发环境配置 ftp://ftpmain.gnustep.org/pub/gnustep/binaries/windows/ 最近打 ...
- Windows下编译objective-C
Windows下编译objective-C 2011-08-31 14:32 630人阅读 评论(0) 收藏 举报 windowscocoa工具objective clibraryxcode 目录 ...
- [Windows驱动]流媒体驱动开发
从Windows98开始,Windows流媒体驱动遵循Windows Driver Model(WDM)模型并使用Kernel Streaming(KS)组件.Kernel Streaming(KS) ...
- windows编译 obs-studio
github下载源码 https://github.com/jp9000/obs-studio 还需要一个开发包 http://code.fosshub.com/OBS/download/depend ...
- windows设备驱动安装指南
高观点下的设备驱动安装(overview) 一.windows是怎样安装设备的? 第一步:新设备的识别 在给一个新设备安装驱动之前,总线或集线器(hub)驱动会为连接到PC上的设备分配一个硬件ID(h ...
随机推荐
- POJ-3660 Cow Contest( 最短路 )
题目链接:http://poj.org/problem?id=3660 Description N (1 ≤ N ≤ 100) cows, conveniently numbered 1..N, ar ...
- Atcode B - Colorful Hats(思维)
题目链接:http://agc016.contest.atcoder.jp/tasks/agc016_b 题解:挺有意思的题目主要还是模拟出最多有几种不可能的情况,要知道ai的差距不能超过1这个想想就 ...
- 染色 Wannafly挑战赛20 A 思维
链接:https://www.nowcoder.com/acm/contest/133/A来源:牛客网 现在有一棵被Samsara-Karma染了k种颜色的树,每种颜色有着不同的价值 Applese觉 ...
- 在React中使用Bootstrap
这几天想在react中用一下bootstrap,尽管有一个适配react的很好的库叫react-bootstrap,但我还是想直接使用bootstrap 可以在react项目中执行以下命令安装boot ...
- Spring的事件监听机制
最近公司在重构广告系统,其中核心的打包功能由广告系统调用,即对apk打包的调用和打包完成之后的回调,需要提供相应的接口给广告系统.因此,为了将apk打包的核心流程和对接广告系统的业务解耦,利用了spr ...
- 聊聊JavaScript异步中的macrotask和microtask
前言 首先来看一个JavaScript的代码片段: console.log(1); setTimeout(() => { console.log(2); Promise.resolve().th ...
- Servlet+jsp用户登录加上验证码
最近公司有个项目被客户拿去进行漏洞扫描,发现用户登录太简单,容易被暴力破解.当然发现的问题很多,什么反射型XSS,存储型XSS,敏感信息泄露等等.但是我们今天不讲这么多,就说说如何修复暴力破解的问题. ...
- Protostuff序列化问题
最近在开发中遇到一个Protostuff序列化问题,在这记录一下问题的根源:分析一下Protostuff序列化和反序列化原理:以及怎么样避免改bug. 1. 问题描述 有一个push业务用到了mq,m ...
- abp(net core)+easyui+efcore实现仓储管理系统——EasyUI前端页面框架 (十八)
目录 abp(net core)+easyui+efcore实现仓储管理系统——ABP总体介绍(一) abp(net core)+easyui+efcore实现仓储管理系统——解决方案介绍(二) ab ...
- .Net基础篇_学习笔记_第四天_switch-case02
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.T ...