SWIG-Variable setzen
-
Hallo,
ich muss einfach nur in einem schon vorhandenen Makefile eine SWIG-Varialble setzen....es will nur nicht klappen
# # makefile.vc - MSVC++ makefile for the C#/MapScript extension # # This VC++ makefile will build the PHP module CSHARP_MAPSCRIPT.DLL # # To use the makefile: # - Open a DOS prompt window # - Run the VCVARS32.BAT script to initialize the VC++ environment variables # - Start the build with: nmake /f makefile.vc # # $Id: Makefile.vc,v 1.2.6.1 2006/03/22 16:01:33 hobu Exp $ # # Flag indicating to the option files that this is the build of C#/MapScript !INCLUDE ../../nmake.opt # Location of the swig.exe SWIG = "C:\Program Files\SWIG-1.3.29\swig.exe" OPTFLAGS = /nologo /Zi $(WARNING_LEVEL) $(DEBUG) BASE_CFLAGS = $(OPTFLAGS) -DWIN32 -D_WIN32 LDFLAGS = /NODEFAULTLIB:msvcrt /NODEFAULTLIB:libcd /dll $(LDEBUG) #LDFLAGS = /NODEFAULTLIB:libcd /dll $(LDEBUG) CFLAGS = $(BASE_CFLAGS) $(MS_CFLAGS) -I../.. CC= cl LINK= link CSC = csc !IFDEF DLLBUILD MS_LIBS = ../../mapserver_i.lib $(EXTERNAL_LIBS) !ELSE MS_LIBS = $(EXTERNAL_LIBS) ../../mapserver.lib !ENDIF # # The rest of the file should not have to be edited... # MAPSCRIPT_OBJS = mapscript_wrap.obj MAPSCRIPT_DLL = mapscript.dll CSHARP_DLL = mapscript_csharp.dll default: all all: interface $(MAPSCRIPT_DLL) $(CSHARP_DLL) interface: ../mapscript.i $(SWIG) -csharp -o mapscript_wrap.c ../mapscript.i .c.obj: $(CC) $(CFLAGS) /DCOMPILE_DL=1 /c $*.c /Fo$*.obj $(MAPSCRIPT_DLL): $(MAPSCRIPT_OBJS) $(LINK) $(LDFLAGS) /out:$(MAPSCRIPT_DLL) $(MAPSCRIPT_OBJS) $(MS_LIBS) $(CSHARP_DLL):: $(CSC) /t:library /out:mapscript_csharp.dll *.cs $(CSC) /r:mapscript_csharp.dll examples\shpdump.cs $(CSC) /r:mapscript_csharp.dll examples\drawmap.cs $(CSC) /r:mapscript_csharp.dll examples\shapeinfo.cs clean: del *.obj del *.dll del *.lib del *.pdb del *.exp del *.ilk del *.cs
Beim ausfuehren mit nmake -f makefile.vc bekomme ich dann folgenden Fehler:
'C:\Program' is not reconized as an internal or external command, operable program of batch file.Hat vll irgendwer eine Idee wo der Fehler ist? Hat es vll mit dem Leerzeichen in der Pfadangabe zu tun?
Danke schon mal im Voraus fuer die Hilfe!
Christian
-
Mit größter Wahrscheinlichkeit hat es mit dem Leerzeichen im Pfad zu tun...
Aber was das mit C++/CLI zu tun hat, weiss ich auch nicht...
-
Wenn du mal nachschlaegst wozu Swig gut ist passt es vll doch nen bisschen in dieses Forum....hatte halt keins gefunden wo es besser reinpasst
-
Es passt IMHO eher nach "Compiler-Forum"...
-
Dieser Thread wurde von Moderator/in Jochen Kalmbach aus dem Forum C++/CLI mit .NET in das Forum Compiler-Forum verschoben.
Im Zweifelsfall bitte auch folgende Hinweise beachten:
C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?Dieses Posting wurde automatisch erzeugt.