首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >windows上的c#生成文件

windows上的c#生成文件
EN

Stack Overflow用户
提问于 2016-03-25 11:11:37
回答 1查看 849关注 0票数 0

要在windows 7上运行以下makefile,我需要安装/配置什么:

代码语言:javascript
复制
MONO = mono
MONOC = gmcs
MONOCFLAGS = -optimize -reference:${PARSERREF}
GPLEX = ${MONO} gplex.exe
GPPG = ${MONO} gppg.exe
PARSERREF = bin/ShiftReduceParser.dll
CSFILES = Absyn.cs Parser.cs Printer.cs Scanner.cs Test.cs VisitSkeleton.cs AbstractVisitSkeleton.cs
all: test

clean:
rm -f test.pdf test

distclean: clean
rm -f ${CSFILES}
rm -f test.l test.y test.tex
rm -f Makefile

test: Parser.cs Scanner.cs
@echo "Compiling test..."
${MONOC} ${MONOCFLAGS} -out:bin/test.exe ${CSFILES}

Scanner.cs: test.l
${GPLEX} /out:$@ test.l

Parser.cs: test.y
${GPPG} /gplex test.y > $@

我一直使用Visual Studio,但这次是由BNFC (解析器生成器)生成的。我在这个makefile中没有看到csc.exe (CSharp编译器)。有人能给我解释一下吗?

注意:我已经安装了gplex.exe和gppg.exe,并且我的机器上安装了.NET。

EN

回答 1

Stack Overflow用户

发布于 2016-11-30 01:33:06

您需要下载并安装GNU make for Windows

http://gnuwin32.sourceforge.net/packages/make.htm

然后,打开cmd.exe和cd到makefile所在的目录。

然后键入make并按enter键,在本例中为make test

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36213431

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档