nmake致命错误U1034:语法错误:缺少分隔符 [英] nmake fatal error U1034: syntax error : separator missing

查看:1081
本文介绍了nmake致命错误U1034:语法错误:缺少分隔符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

# gnsdk C# wrapper sample makefile
##

CC=Csc.exe
CP=cp

GNSDK_LIB_PATH=../../../../lib/$(GNSDK_PLATFORM)
GNSDK_WRAPPER_LIB_PATH=../../lib/$(GNSDK_PLATFORM)
GNSDK_MARSHAL_LIB=$(GNSDK_WRAPPER_LIB_PATH)/gnsdk_csharp_marshal.dll
GNSDK_CSHARP_LIB=../../lib/gnsdk_csharp.dll


CSHARP_FLAGS=/noconfig /nowarn:1701,1702 /nostdlib+ /errorendlocation
CSHARP_REFS=/reference:$(GNSDK_CSHARP_LIB) /reference:"Microsoft.CSharp.dll" /reference:"mscorlib.dll" /reference:"System.Core.dll" /reference:"System.Data.DataSetExtensions.dll" /reference:"System.Data.dll" /reference:"System.dll" /reference:"System.Xml.dll" 

ifeq ($(GNSDK_PLATFORM), win_x86-32)
    CSHARP_FLAGS+=/platform:x86
endif

ifeq ($(GNSDK_PLATFORM), win_x86-64)
    CSHARP_FLAGS+=/platform:x64
endif

SAMPLE_TARGET=sample.exe


build_sample:
    $(CC) $(CSHARP_FLAGS) $(CSHARP_REFS) /out:$(SAMPLE_TARGET) /target:exe /utf8output MusicIDStream.cs
    $(CP) $(GNSDK_MARSHAL_LIB) .
    $(CP) $(GNSDK_CSHARP_LIB) .

我有一个用于C#应用程序的makefile. 我正在尝试从Visual Studio命令提示符运行它. 我在此行出现错误:CSHARP_FLAGS + =/platform:x86

I got a makefile for a c# application. I am trying to run it from visual studio command prompt. I got error with this row: CSHARP_FLAGS+=/platform:x86

推荐答案

您正在查看的makefile似乎是GNU make makefile.您不能将其与nmake一起使用.如果要使用此Makefile,则必须安装GNU make,否则,请编写要与nmake一起使用的nmake makefile.

The makefile you are looking at appears to be a GNU make makefile. You cannot use it with nmake. You'll have to install GNU make if you want to use this makefile, or else write an nmake makefile to use with nmake.

这篇关于nmake致命错误U1034:语法错误:缺少分隔符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆