Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Makefile Can';t编译C++;在gnustepprojectcenter中_Makefile_Gnustep - Fatal编程技术网

Makefile Can';t编译C++;在gnustepprojectcenter中

Makefile Can';t编译C++;在gnustepprojectcenter中,makefile,gnustep,Makefile,Gnustep,我已经在windows中设置了gnustep, 让Gorm和Projectcenter运行 并成功构建Objective-C hello world应用程序 使用Gorm构建的UI 但是,添加类C++类如BR> 将使项目无法编译 ProjectCenter的“新建文件”命令 没有“cpp”,只有“c”文件 是不是ProjectCenter不支持C++/Obj-C++ 有没有办法编辑make文件,使之编译C++文件?< /p> 目前(0.6),项目中心不支持C++,也不支持Obj-C++ 支持Ob

我已经在windows中设置了gnustep,
让Gorm和Projectcenter运行
并成功构建Objective-C hello world应用程序
使用Gorm构建的UI

<>但是,添加类C++类如BR> 将使项目无法编译

ProjectCenter的“新建文件”命令
没有“cpp”,只有“c”文件

是不是ProjectCenter不支持C++/Obj-C++

有没有办法编辑make文件,使之编译C++文件?< /p>

目前(0.6),项目中心不支持C++,也不支持Obj-C++</P>

支持Obj-C++的未来计划。

(0.6),项目中心不支持C++,也不支持Obj-C++</P> 不过,对Obj-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