我已经在 Windows 中设置了 gnustep,运行了
Gorm 和 Projectcenter
,并成功构建了一个带有 Gorm 构建的 UI 的 Objective-C hello world 应用程序
。
但是,添加诸如 Class 等 C++ 的东西
会使项目无法编译。
ProjectCenter 的“新建文件”命令
没有“cpp”,只有“c”文件。
是不是 ProjectCenter 不支持 C++/Obj-C++?
有没有办法编辑 make 文件以使其编译 C++ 文件?
#
# GNUmakefile - Generated by ProjectCenter
#
ifeq ($(GNUSTEP_MAKEFILES),)
GNUSTEP_MAKEFILES := $(shell gnustep-config --variable=GNUSTEP_MAKEFILES 2>/dev/null)
endif
ifeq ($(GNUSTEP_MAKEFILES),)
$(error You need to set GNUSTEP_MAKEFILES before compiling!)
endif
include $(GNUSTEP_MAKEFILES)/common.make
#
# Application
#
VERSION = 0.1
PACKAGE_NAME = myapp
APP_NAME = myapp
myapp_APPLICATION_ICON =
#
# Resource files
#
myapp_RESOURCE_FILES = \
Resources/myapp.gorm \
Resources/Main.gsmarkup \
Resources/MainMenu-GNUstep.gsmarkup \
Resources/MainMenu-OSX.gsmarkup
#
# Header files
#
myapp_HEADER_FILES = \
AppController.h \
mycls.h
#
# Class files
#
myapp_OBJC_FILES = \
AppController.m
#
# Other sources
#
myapp_C_FILES = \
mycls.c
myapp_OBJC_FILES += \
myapp_main.m
#
# Makefiles
#
-include GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/aggregate.make
include $(GNUSTEP_MAKEFILES)/application.make
-include GNUmakefile.postamble