[Xcircuit-dev] Windows Tcl build

Tomas Forssén tomas.forssen at gmail.com
Wed Mar 28 10:28:14 EDT 2012


Hello again,

> Give me a minute or two and I will come back with a patch.
>
Here is the patch: win64build.patch

Prerequisites: (well the setup I used)
- Windows 7 64bit
- Windows SDK 7.1 in x64 debug mode. (Can be somewhat tricky to install. 
Try on a clean windows installation)
- Active Tcl 8.5
- mingw-make (The one that ships with 
ftp://ftp.equation.com/gcc/gcc-4.6.3-64.exe)
- The xcircute 3.7 git source "git clone 
git://opencircuitdesign.com/xcircuit-3.7"
- (A git client of your choice)

Apply patch and it should compile/install with a few warnings, see 
below. I have not looked into those yet.

As I mentioned it runs but is unstable. An easy way of recreate the 
error is to add some symbols. Pick e.g a cap from the Generic library. 
Add one. Start making copies. After about 19-20 the program hangs. A 
possible workaround is to "save" after 10 additions and then add another 
10. Then I can continue. I think...

The translated message is: "Wish Application has stopped working". (To 
be precise the message is: "Wish Application har slutat att fungera" 
since my Windows is in swedish.)

The error report refers to "xcircuit.dll". It would be nice to get the 
stdout/stderr from there. Any one knows how to get those?

Thats all for now...
BR
/Tomas

 > grep warning make.log
(src)\elements.c(584) : warning C4700: uninitialized local variable 
'strpos' used
events.c(6571) : warning C4022: 'SelectObject' : pointer mismatch for 
actual parameter 2
(src)\files.c(1114) : warning C4700: uninitialized local variable 
'savebutton' used
(src)\files.c(1127) : warning C4700: uninitialized local variable 
'savebutton' used
keybindings.c(429) : warning C4047: '=' : 'char *' differs in levels of 
indirection from 'int'
(src)\undo.c(751) : warning C4700: uninitialized local variable 'egen' used
(src)\undo.c(1273) : warning C4700: uninitialized local variable 'egen' used
(src)\xcircuit.c(186) : warning C4700: uninitialized local variable 
'newbutton' used
(src)\tclxcircuit.c(2039) : warning C4700: uninitialized local variable 
'plist' used
(src)\tclxcircuit.c(3192) : warning C4700: uninitialized local variable 
'value' used
(src)\tclxcircuit.c(4375) : warning C4700: uninitialized local variable 
'jval' used
xcircexec.c(76) : warning C4113: 'int (__cdecl *)()' differs in 
parameter lists from 'Tcl_AppInitProc (__cdecl *)'
xcircexec.c(76) : warning C4113: 'int (__cdecl *)()' differs in 
parameter lists from 'Tcl_AppInitProc (__cdecl *)'

-------------- next part --------------
From ff1f9e1b07425a4ce0234d9b4840965b097b7f9a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomas=20Forss=E9n?= <tomas.forssen at gmail.com>
Date: Wed, 28 Mar 2012 13:35:14 +0100
Subject: [PATCH 1/7] Added windows specific ignore rules.

---
 .gitignore |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
index f3ce576..2e4332c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,8 +12,19 @@ menudep.h
 lib/xcircuit.1
 lib/tcl/xcircuit.sh
 lib/tcl/xcircuit.tcl
+lib/tcl/xcircuit.bat
 *.o
 *.so
 *~
 UPDATE_ME
 VERSION
+# Windows specific ignores
+lib/tcl/xcircuit.bat
+lib/tcl/xcircuit.lib
+lib/tcl/xcircuit.exp
+*.pdb
+*.obj
+*.res
+*.ilk
+*.dll
+*.exe
\ No newline at end of file
-- 
1.7.4


From cfaaf58ad1dbff57662fde9f2055a1a95dc4fb0b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomas=20Forss=E9n?= <tomas.forssen at gmail.com>
Date: Wed, 28 Mar 2012 13:58:00 +0100
Subject: [PATCH 2/7] Update to use with Windows SDK 7.1 and mingw-make. (only
 tcl build)

- Add GM_EXEC to be able to convert pictures
- Fix a lot of \ / dir separators. Not sure if all is ok...
- Remove the use "for" loops. Found later that "for %%i" did the trick.
- Add svg.c to list of source files.
- ...perhaps something else as well...
---
 Makefile.win32 |  185 +++++++++++++++++++++++++++++---------------------------
 1 files changed, 96 insertions(+), 89 deletions(-)

diff --git a/Makefile.win32 b/Makefile.win32
index bf3e414..3616ea6 100644
--- a/Makefile.win32
+++ b/Makefile.win32
@@ -15,10 +15,11 @@
 # Configuration variables #
 ###########################
 
-INSTALLDIR = D:\Software\XCircuit-tcl-dev
+INSTALLDIR = C:\app\xcircuit-tcl-dev
 TEMPDIR    = D:\Temp
 
-GSDIR      = C:\gs\gs8.15
+GSDIR      = C:\app\gs\gs9.02x64
+GMDIR      = C:\app\graphicsmagick-1.3.14
 
 # Possible values: tcl, win32
 BUILD_TYPE = tcl
@@ -29,8 +30,8 @@ USE_WIN32_DOTNET = 0
 XCCOMDIR         = xccom2
 
 # Additional settings for tcl build
-TCLDIR     = D:\Software\Tcl
-TCLVERSION = 84
+TCLDIR     = C:\app\tclx64
+TCLVERSION = 85
 
 ####################################################################
 # End of configuration. DO NOT CHANGE ANYTHING AFTER THIS POINT!!! #
@@ -38,7 +39,7 @@ TCLVERSION = 84
 
 SOURCES = menudep.c $(xcircuit_SOURCES)
 
-MAKE = $(MAKE) -f Makefile.win32
+MK = $(MAKE) -f Makefile.win32
 
 srcdir = .
 top_srcdir = .
@@ -55,6 +56,7 @@ xcircuit_OBJECTS = elements.$(OBJEXT) events.$(OBJEXT) \
 	libraries.$(OBJEXT) menucalls.$(OBJEXT) netlist.$(OBJEXT) \
 	ngspice.$(OBJEXT) opengl.$(OBJEXT) parameter.$(OBJEXT) \
 	python.$(OBJEXT) rcfile.$(OBJEXT) render.$(OBJEXT) \
+	svg.$(OBJEXT) \
 	schema.$(OBJEXT) selection.$(OBJEXT) text.$(OBJEXT) \
 	undo.$(OBJEXT) xcircuit.$(OBJEXT) $(WIN32_OBJECTS)
 DEFAULT_INCLUDES = -I. -I$(srcdir)
@@ -77,28 +79,28 @@ XC_LIBS     =
 XC_OBJECT   =
 XC_INCLUDES =
 
-!if "$(BUILD_TYPE)" == "win32"
-WIN32_OBJECTS = xcwin32.$(OBJEXT) xtfuncs.$(OBJEXT) xtgui.$(OBJEXT) resources.res
-BUILTINS_DIR  = WinBuiltinsDir()
-STARTUP_FILE  = startup.script
-XC_CFLAGS     = -DHAVE_XPM -D_CRT_SECURE_NO_DEPRECATE
-!if "$(USE_WIN32_COM)" != "0"
-XC_CFLAGS = $(XC_CFLAGS) -DUSE_WIN32_COM
-XC_DEPEND = $(XCCOMDIR)\XCCom.lib
-XC_LIBS = $(XCCOMDIR)\XCCom.lib ole32.lib oleaut32.lib
-!if "$(USE_WIN32_DOTNET)" != "0"
-XC_CFLAGS = $(XC_CFLAGS) -DUSE_WIN32_DOTNET
-!endif
-!endif
-!else
-WIN32_OBJECTS = tclxcircuit.$(OBJEXT) tkSimple.$(OBJEXT) w32x11.$(OBJEXT)
-BUILTINS_DIR  = \"$(librarydir:\=/)\"
-SCRIPTS_DIR  = \"$(scriptsdir:\=/)\"
-STARTUP_FILE  = xcstartup.tcl
-XC_CFLAGS     = -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE
-XC_INCLUDES   = -I$(TCLDIR)\include
-XC_LIBS       = $(TCLDIR)\lib\tcl$(TCLVERSION).lib $(TCLDIR)\lib\tk$(TCLVERSION).lib
-!endif
+ifeq ($(BUILD_TYPE),win32)
+  WIN32_OBJECTS = xcwin32.$(OBJEXT) xtfuncs.$(OBJEXT) xtgui.$(OBJEXT) resources.res
+  BUILTINS_DIR  = WinBuiltinsDir()
+  STARTUP_FILE  = startup.script
+  XC_CFLAGS     = -DHAVE_XPM -D_CRT_SECURE_NO_DEPRECATE
+  ifneq ($(USE_WIN32_COM),0)
+    XC_CFLAGS = $(XC_CFLAGS) -DUSE_WIN32_COM
+    XC_DEPEND = $(XCCOMDIR)\XCCom.lib
+    XC_LIBS = $(XCCOMDIR)\XCCom.lib ole32.lib oleaut32.lib
+    ifneq ($(USE_WIN32_DOTNET),0)
+      XC_CFLAGS = $(XC_CFLAGS) -DUSE_WIN32_DOTNET
+    endif
+  endif
+else
+  WIN32_OBJECTS = tclxcircuit.$(OBJEXT) tkSimple.$(OBJEXT) w32x11.$(OBJEXT)
+  BUILTINS_DIR  = \"$(subst \,/,$(librarydir))\"
+  SCRIPTS_DIR  = \"$(subst \,/,$(scriptsdir))\"
+  STARTUP_FILE  = xcstartup.tcl
+  XC_CFLAGS     = -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE
+  XC_INCLUDES   = -I$(TCLDIR)\include
+  XC_LIBS       = $(TCLDIR)\lib\tcl$(TCLVERSION).lib $(TCLDIR)\lib\tk$(TCLVERSION).lib
+endif
 
 
 # Override standard "make" target when compiling under TCL
@@ -106,11 +108,11 @@ ALL_TARGET = all-recursive
 INSTALL_TARGET = install
 
 CC = cl
-CFLAGS = -Zi -DSPICE_EXEC=\"$(SPICE_EXEC:\=/)\" -DHAVE_PUTENV -DGS_EXEC=\"$(GS_EXEC:\=/)\" -DXC_WIN32 -DDOUBLEBUFFER $(XC_CFLAGS)
+CFLAGS = -Zi -DSPICE_EXEC=\"$(subst \,/,$(SPICE_EXEC))\" -DHAVE_PUTENV -DGS_EXEC=\"$(subst \,/,$(GS_EXEC))\" -DGM_EXEC=\"$(subst \,/,$(GM_EXEC))\" -DXC_WIN32 -DDOUBLEBUFFER $(XC_CFLAGS)
 CPP = cl
 CPPFLAGS =
-RM = del /q
-RMDIR = rmdir /s /q
+RM = del /S /Q
+RMDIR = rmdir /S /Q
 
 # Main compiler arguments
 DEFS = $(PATHNAMES)
@@ -120,7 +122,8 @@ ECHO_T = echo
 EGREP = egrep
 EXEEXT = .exe
 EXTRA_LIB_SPECS =
-GS_EXEC = $(GSDIR)\bin\gswin32c.exe
+GS_EXEC = $(GSDIR)\bin\gswin64c.exe
+GM_EXEC = $(GMDIR)\gm.exe
 INC_SPECS = -I. $(XC_INCLUDES)
 INSTALL_DATA = copy /y
 INSTALL_PROGRAM = copy /y
@@ -143,9 +146,9 @@ PACKAGE = xcircuit
 PACKAGE_NAME = xcircuit
 PATH_SEPARATOR = \\
 VERSION = 3.7
-REVISION = 21
+REVISION = 36
 SHDLIB_EXT = .dll
-SHLIB_CFLAGS = /LD /ML
+SHLIB_CFLAGS = /LD
 SHLIB_LIB_SPECS =
 SPICE_EXEC = ngspice.exe
 SUBDIRS =
@@ -170,8 +173,9 @@ tmpdir = $(TEMPDIR)
 # Directories for app-defaults file and manual page
 PATHNAMES = -DPROG_VERSION=$(VERSION) \
 	-DPROG_REVISION=$(REVISION) \
-	-DCAD_DIR=\"$(prefix:\=/)\" \
-	-DTEMP_DIR=\"$(tmpdir:\=/)\" \
+	-DCAD_DIR=\"$(subst \,/,$(prefix))\" \
+	-DTEMP_DIR=\"$(subst \,/,$(tmpdir))\" \
+	-DSCRIPTS_DIR=\"$(scriptsdir)\" \
 	-DBUILTINS_DIR=$(BUILTINS_DIR) \
 	-DBUILTINS_FILE=\"$(BUILTINS_FILE)\" \
 	-DUSER_RC_FILE=\"$(USER_RC_FILE)\" \
@@ -184,7 +188,9 @@ xcircuit_SOURCES = elements.c events.c filelist.c files.c \
 	flate.c fontfile.c formats.c functions.c graphic.c \
 	help.c keybindings.c libraries.c menucalls.c \
 	netlist.c ngspice.c opengl.c parameter.c python.c \
-	rcfile.c render.c schema.c selection.c text.c undo.c \
+	rcfile.c render.c schema.c selection.c \
+	svg.c \
+	text.c undo.c \
 	tclxcircuit.c tkSimple.c xcircuit.c w32x11.c
 
 xcircuit_DEPEND = $(XC_DEPEND)
@@ -235,7 +241,7 @@ all: all-recursive
 ##################
 
 menudep$(EXEEXT): menudep.$(OBJEXT)
-	$(CC) -Fe$@ $**
+	$(CC) -Fe$@ menudep.$(OBJEXT)
 
 menudep.h: menudep$(EXEEXT) menus.h
 	.\menudep$(EXEEXT)
@@ -264,25 +270,25 @@ xcircexec$(EXEEXT): xcircexec.$(OBJEXT)
 
 xcircuit-win32$(EXEEXT): xcircuit-win32.c resources.res
 	$(CC) $(CFLAGS) $(CPPFLAGS) \
-		-DWISH_EXE=L\"$(WISH_EXE:\=/)\" \
+		-DWISH_EXE=L\"$(subst \,/,$(WISH_EXE))\" \
 		-DBUILTINS_DIR=L$(BUILTINS_DIR) \
 		$(INCLUDES) xcircuit-win32.c resources.res \
 		-Fe$@ $(LDFLAGS) $(LIBS) $(LIB_SPECS) $(EXTRA_LIB_SPECS) shell32.lib advapi32.lib
 
 tcl:
 	@echo Making tcl library object
-	$(MAKE) lib\tcl\xcircuit$(SHDLIB_EXT)
-	$(MAKE) lib\$(INTERP_PATH)\$(WRAPPER_SH)
-	$(MAKE) lib\$(INTERP_PATH)\$(WRAPPER_INIT)
-	$(MAKE) xcircexec$(EXEEXT)
-	$(MAKE) xcircuit-win32$(EXEEXT)
+	$(MK) lib\tcl\xcircuit$(SHDLIB_EXT)
+	$(MK) lib\$(INTERP_PATH)\$(WRAPPER_SH)
+	$(MK) lib\$(INTERP_PATH)\$(WRAPPER_INIT)
+	$(MK) xcircexec$(EXEEXT)
+	$(MK) xcircuit-win32$(EXEEXT)
 
 win32:
 	@echo Making win32
-!if "$(USE_WIN32_COM)" != "0"
-	cd $(XCCOMDIR) && $(MAKE) && cd ..
-!endif
-	$(MAKE) xcircuit$(EXEEXT)
+ifneq ($(USE_WIN32_COM),0)
+	cd $(XCCOMDIR) && $(MK) && cd ..
+endif
+	$(MK) xcircuit$(EXEEXT)
 
 help.c: menudep.h
 menucalls.c: menudep.h
@@ -298,15 +304,15 @@ $(PP): pp.c
 	$(CC) -Zi pp.c
 
 lib\$(INTERP_PATH)\$(WRAPPER_SH): $(PP) lib\$(INTERP_PATH)\$(WRAPPER_SH).in
-	$(PP) $(PATHNAMES) -DXCLIBDIR=\"$(librarydir:\=/)\" \
+	$(PP) $(PATHNAMES) -DXCLIBDIR=\"$(subst \,/,$(librarydir))\" \
 		-DWRAPPER_INIT=\"$(WRAPPER_INIT)\" -DCONSOLE=\"$(CONSOLE)\" \
 		-DCONSOLE_SCRIPT=\"$(CONSOLE_SCRIPT)\" \
-		-DTCLLIBDIR=\"$(TCL_LIB_DIR:\=/)\" \
-		-DWISH_EXE=\"$(WISH_EXE:\=/)\" \
+		-DTCLLIBDIR=\"$(subst \,/,$(TCL_LIB_DIR))\" \
+		-DWISH_EXE=\"$(subst \,/,$(WISH_EXE))\" \
 		lib/$(INTERP_PATH)/$(WRAPPER_SH).in > $@
 
 lib\$(INTERP_PATH)\$(WRAPPER_INIT): $(PP) lib\$(INTERP_PATH)\$(WRAPPER_INIT).in
-	$(PP) $(PATHNAMES) -DLIBDIR=\"$(librarydir:\=/)\" \
+	$(PP) $(PATHNAMES) -DLIBDIR=\"$(subst \,/,$(librarydir))\" \
 		lib/$(INTERP_PATH)/$(WRAPPER_INIT).in > $@
 
 lib\xcircuit.1: $(PP) lib\xcircuit.1.in
@@ -315,39 +321,34 @@ lib\xcircuit.1: $(PP) lib\xcircuit.1.in
 		-DLGF=1 -DPYTHON=0 -DTCL=1 -DNOINTERP=0 \
 		lib\xcircuit.1.in > $@
 
-install-data-local: lib/xcircuit.1
+install-data-local: lib\xcircuit.1
 	@echo "Installing library files"
 	$(mkinstalldirs) $(DESTDIR)$(librarydir)
-	cd lib
-	for %i in ($(PROLOGUE_FILE) *.lps) do $(INSTALL_DATA) %i $(DESTDIR)$(librarydir)
-	cd ..
-	cd lib\$(INTERP_PATH)
-	for %i in ($(STARTUP_FILE)) do $(INSTALL_DATA) %i $(DESTDIR)$(librarydir)
-	cd ..\..
+	$(INSTALL_DATA) lib\$(PROLOGUE_FILE) $(DESTDIR)$(librarydir)
+	$(INSTALL_DATA) lib\*.lps $(DESTDIR)$(librarydir)
+	$(INSTALL_DATA) lib\$(INTERP_PATH)\$(STARTUP_FILE) $(DESTDIR)$(librarydir)
 	@echo "Installing .lps font files"
 	$(mkinstalldirs) $(DESTDIR)$(librarydir)\fonts
-	for %i in ($(FONTS_LPS)) do $(INSTALL_DATA) lib\fonts\%i.lps $(DESTDIR)$(librarydir)\fonts
+	$(foreach f,$(FONTS_LPS), $(INSTALL_DATA) lib\fonts\$(f).lps $(DESTDIR)$(librarydir)\fonts &)
 	@echo "Installing .xfe font files"
-	for %i in ($(FONTS_XFE)) do $(INSTALL_DATA) lib\fonts\%i.xfe $(DESTDIR)$(librarydir)\fonts
+	$(foreach f,$(FONTS_XFE), $(INSTALL_DATA) lib\fonts\$(f).xfe $(DESTDIR)$(librarydir)\fonts &)
 	@echo "Installing scripts (if option enabled)"
 
 # Note that MacOS/Fink uses SHDLIB_EXT = .dylib but Tcl expects .so anyway.
 # So we make a symbolic link if SHDLIB_EXT != .so
 
-install-tcl: xcircexec$(EXEEXT) lib/$(INTERP_PATH)/$(WRAPPER_OBJ) lib/$(INTERP_PATH)/$(WRAPPER_SH) lib/$(INTERP_PATH)/$(WRAPPER_INIT) xcircuit-win32$(EXEEXT)
+install-tcl: xcircexec$(EXEEXT) lib\$(INTERP_PATH)\$(WRAPPER_OBJ) lib\$(INTERP_PATH)\$(WRAPPER_SH) lib\$(INTERP_PATH)\$(WRAPPER_INIT) xcircuit-win32$(EXEEXT)
 	if exist $(prefix) $(RMDIR) $(prefix)
 	@echo "Installing standard XCircuit library files"
-	$(MAKE) $(AM_MAKEFLAGS) install-data-local
+	$(MK) $(AM_MAKEFLAGS) install-data-local
 	@echo "Installing Tcl files"
-	cd lib\$(INTERP_PATH)
-	for %i in ($(WRAPPER_OBJ) *.tcl) do $(INSTALL_DATA) %i $(DESTDIR)$(librarydir)
-	cd ..\..
+	$(INSTALL_DATA) lib\$(INTERP_PATH)\$(WRAPPER_OBJ) $(DESTDIR)$(librarydir)
+	$(INSTALL_DATA) lib\$(INTERP_PATH)\*.tcl $(DESTDIR)$(librarydir)
 	$(INSTALL_DATA) xcircexec$(EXEEXT) $(DESTDIR)$(librarydir)
 	@echo "Installing pixmap images"
 	$(mkinstalldirs) $(DESTDIR)$(librarydir)\pixmaps
-	cd lib\pixmaps
-	for %i in (*.gif *.xbm) do $(INSTALL_DATA) %i $(DESTDIR)$(librarydir)\pixmaps
-	cd ..\..
+	$(INSTALL_DATA) lib\pixmaps\*.gif $(DESTDIR)$(librarydir)\pixmaps
+	$(INSTALL_DATA) lib\pixmaps\*.xbm $(DESTDIR)$(librarydir)\pixmaps
 	@echo "Installing shell script as xcircuit executable"
 	$(mkinstalldirs) $(DESTDIR)$(bindir)
 	$(INSTALL_DATA) lib\$(INTERP_PATH)\$(WRAPPER_SH) $(DESTDIR)$(bindir)
@@ -355,44 +356,48 @@ install-tcl: xcircexec$(EXEEXT) lib/$(INTERP_PATH)/$(WRAPPER_OBJ) lib/$(INTERP_P
 
 install-win32: xcircuit$(EXEEXT)
 	if exist $(prefix) $(RMDIR) $(prefix)
-	$(MAKE) $(AM_MAKEFLAGS) install-data-local "librarydir=$(prefix)"
+	$(MK) $(AM_MAKEFLAGS) install-data-local "librarydir=$(prefix)"
 	$(INSTALL_DATA) xcircuit$(EXEEXT) $(DESTDIR)$(prefix)
 
 clean:
 	-$(RM) lib\$(INTERP_PATH)\$(WRAPPER_OBJ) lib\$(INTERP_PATH)\$(WRAPPER_SH)
-	-for %e in (ilk exp pdb lib) do @if exist lib\$(INTERP_PATH)\xcircuit.%e $(RM) lib\$(INTERP_PATH)\xcircuit.%e
+	-for %%e in (ilk exp pdb lib) do @if exist lib\$(INTERP_PATH)\xcircuit.%%e $(RM) lib\$(INTERP_PATH)\xcircuit.%%e
 	-$(RM) lib\$(INTERP_PATH)\$(WRAPPER_INIT)
-	-for %f in (*.$(OBJEXT) xcircexec$(EXEEXT) lib\xcircuit.1 xcircuit$(EXEEXT) xcircuit.suo) do $(RM) %f
-	-for %e in (aps res) do $(RM) resources.%e
-	-for %e in (ilk exp pdb lib) do @if exist xcircexec.%e $(RM) xcircexec.%e
-	-for %e in (ilk exp pdb lib) do @if exist xcircuit.%e $(RM) xcircuit.%e
-	-for %e in (ilk exp pdb lib) do @if exist pp.%e $(RM) pp.%e
-	-for %e in (ilk exp pdb lib exe) do @if exist xcircuit-win32.%e $(RM) xcircuit-win32.%e
+	-for %%f in (*.$(OBJEXT) xcircexec$(EXEEXT) lib\xcircuit.1 xcircuit$(EXEEXT) xcircuit.suo) do $(RM) %%f
+	-for %%e in (aps res) do $(RM) resources.%%e
+	-for %%e in (ilk exp pdb lib) do @if exist xcircexec.%%e $(RM) xcircexec.%%e
+	-for %%e in (ilk exp pdb lib) do @if exist xcircuit.%%e $(RM) xcircuit.%%e
+	-for %%e in (ilk exp pdb lib) do @if exist pp.%%e $(RM) pp.%%e
+	-for %%e in (ilk exp pdb lib exe) do @if exist xcircuit-win32.%%e $(RM) xcircuit-win32.%%e
 	-$(RM) menudep$(EXEEXT) menudep.h
 	-$(RM) pp$(EXEEXT)
 	-$(RM) *.pdb
 	-$(RM) *~
-!if "$(BUILD_TYPE)" == "win32" && "$(USE_WIN32_COM)" != "0"
-	cd $(XCCOMDIR) && $(MAKE) clean && cd ..
-!endif
+ifeq ($(BUILD_TYPE),win32)
+  ifneq ($(USE_WIN32_COM),0)
+	cd $(XCCOMDIR) && $(MK) clean && cd ..
+  endif
+endif
 
 $(ALL_TARGET):
-	$(MAKE) $(XCIRCUIT_TARGET)
+	$(MK) $(XCIRCUIT_TARGET)
 
 $(INSTALL_TARGET):
-	(MAKE) install-tcl
+	$(MK) install-tcl
 
 examples: all
-!if "$(BUILD_TYPE)" == "win32" && "$(USE_WIN32_COM)" != "0"
-	cd $(XCCOMDIR) && $(MAKE) examples && cd ..
-!endif
+ifeq ($(BUILD_TYPE),win32)
+  ifneq ($(USE_WIN32_COM),0)
+	cd $(XCCOMDIR) && $(MK) examples && cd ..
+  endif
+endif
 
-!if "$(BUILD_TYPE)" == "win32"
+ifeq ($(BUILD_TYPE),win32)
 xcircuit.h: xcwin32.h
 xcwin32.c: xcircuit.h
-!else
+else
 xcircuit.h: tkwin32.h
-!endif
+endif
 elements.c: xcircuit.h
 events.c: xcircuit.h
 filelist.c: xcircuit.h
@@ -420,6 +425,8 @@ undo.c: xcircuit.h
 xcircuit.c: xcircuit.h
 xtgui.c: xcircuit.h
 xtfuncs.c: xcircuit.h
-!if "$(BUILD_TYPE)" == "win32" && "$(USE_WIN32_COM)" != "0"
+ifeq ($(BUILD_TYPE),win32)
+  ifneq ($(USE_WIN32_COM),0)
 resources.rc: $(XCCOMDIR)/XCCom.tlb
-!endif
+  endif
+endif
-- 
1.7.4


From da676ea34333370aca72ae16b9055f10ae315f31 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomas=20Forss=E9n?= <tomas.forssen at gmail.com>
Date: Wed, 28 Mar 2012 14:03:04 +0100
Subject: [PATCH 3/7] Adapt to use Windows style of low-level IO functions.

- Add a S_ISDIR macro for XC_WIN32
- Add '_' when calling 'stat' function
---
 files.c |   34 ++++++++++++++++++++++++++++------
 1 files changed, 28 insertions(+), 6 deletions(-)

diff --git a/files.c b/files.c
index 59cd49e..6855b00 100644
--- a/files.c
+++ b/files.c
@@ -115,8 +115,14 @@ char *ridnewline(char *sptr)
 int filecmp(char *filename1, char *filename2)
 {
    char *root1, *root2, *path1, *path2, *end1, *end2;
-   int rval;
-   struct stat statbuf;
+   int rval, rval1, rval2;
+#ifndef XC_WIN32
+   struct stat statbuf1;
+   struct stat statbuf2;
+#else
+   struct _stat statbuf1;
+   struct _stat statbuf2;
+#endif
    ino_t inode1;
    const char *cwdname = ".";
 
@@ -158,13 +164,29 @@ int filecmp(char *filename1, char *filename2)
    /* equivalence.  Note that the file itself is not assumed to	*/
    /* exist.							*/
 
+#ifdef XC_WIN32
+#ifndef S_ISDIR
+#define S_ISDIR(mode)  (((mode) & _S_IFDIR) == _S_IFDIR)
+#endif
+#endif
+
    rval = 1;
    if (end1 != NULL) *end1 = '\0';
-   if (stat(path1, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) {
-      inode1 = statbuf.st_ino;
+#ifndef XC_WIN32
+   rval1 = stat(path1, &statbuf1);
+#else
+   rval1 = _stat(path1, &statbuf1);
+#endif
+   if (rval1 == 0 && S_ISDIR(statbuf1.st_mode)) {
+      inode1 = statbuf1.st_ino;
       if (end2 != NULL) *end2 = '\0';
-      if (stat(path2, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) {
-	 if (inode1 == statbuf.st_ino)
+#ifndef XC_WIN32
+      rval2 = stat(path2, &statbuf2);
+#else
+      rval2 = _stat(path2, &statbuf2);
+#endif
+      if (rval2 == 0 && S_ISDIR(statbuf2.st_mode)) {
+	 if (inode1 == statbuf2.st_ino)
 	    rval = 0;
       }
       if (end2 != NULL) *end2 = PATHSEP;
-- 
1.7.4


From fdf95509982c92dbba012c90afbb73e2c772faf1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomas=20Forss=E9n?= <tomas.forssen at gmail.com>
Date: Wed, 28 Mar 2012 14:08:26 +0100
Subject: [PATCH 4/7] Add environment variable 'XCIRCUIT_SRC_DIR'.

- Set XCIRCUIT_SRC_DIR=XCIRCUIT_LIB_DIR. Possibly a bug in
  lib/tcl/xcircuit.tcl.in, not using the _SRC_ variable instead
  of _LIB_ variant.
---
 lib/tcl/xcircuit.bat.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/tcl/xcircuit.bat.in b/lib/tcl/xcircuit.bat.in
index 8b78f73..70b74ff 100644
--- a/lib/tcl/xcircuit.bat.in
+++ b/lib/tcl/xcircuit.bat.in
@@ -6,6 +6,7 @@ rem launches magic and retains the Tcl interactive interpreter.
 rem
 
 set XCIRCUIT_LIB_DIR=XCLIBDIR
+set XCIRCUIT_SRC_DIR=XCLIBDIR
 set XCIRCUIT_WISH=WISH_EXE
 
 set loclibdir=%XCIRCUIT_LIB_DIR%
-- 
1.7.4


From 6cb15f48a8774b710e4c867265e9f5560fc3e318 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomas=20Forss=E9n?= <tomas.forssen at gmail.com>
Date: Wed, 28 Mar 2012 14:11:00 +0100
Subject: [PATCH 5/7] Adapt pipe/write functions to windows style.

- pipe -> _pipe and added a pipe_mode and pipe_size.
- write -> _write
- Remove use of termios.h. Not available on windows.
- Remove flushing after write. Could not find any suitable windows
  equivalent. !!!Not sure if this is OK!!!
---
 render.c |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/render.c b/render.c
index 796f87f..ec8b7c2 100644
--- a/render.c
+++ b/render.c
@@ -13,8 +13,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <termios.h>
 #ifndef XC_WIN32
+#include <termios.h>    /* termios do not exist on windows */
 #include <unistd.h>
 #endif
 #include <time.h>
@@ -241,6 +241,10 @@ void ask_for_next()
 void start_gs()
 {
    int std_out[2], std_err[2], ret;
+#ifdef XC_WIN32
+   unsigned int pipe_size = 8196; /* Windows need a pipe size argument */
+   int pipe_mode = _O_BINARY;     /* Windows need a pipe mode argument */
+#endif
 #ifdef HAVE_PUTENV
    static char env_str1[128], env_str2[64];
 #endif
@@ -270,10 +274,20 @@ void start_gs()
 
    XSync(dpy, False);
 
+#ifndef XC_WIN32
    ret = pipe(fgs);
    ret = pipe(std_out);
+#else
+   ret = _pipe(fgs, pipe_size, pipe_mode);
+   ret = _pipe(std_out, pipe_size, pipe_mode);
+#endif
+
 #ifndef GS_DEBUG
+#ifndef XC_WIN32
    ret = pipe(std_err);
+#else
+   ret = _pipe(srd_err, pipe_size, pipe_mode);
+#endif /* XC_WIN32 */
 #endif
 
    /* We need a complicated pipe here, with input going from xcircuit	*/
@@ -590,8 +604,12 @@ void loadbackground()
 
 void send_to_gs(char *text)
 {
+#ifndef XC_WIN32
    write(fgs[1], text, strlen(text));
    tcflush(fgs[1], TCOFLUSH);
+#else
+   _write(fgs[1], text, (unsigned int)strlen(text));
+#endif
 #ifdef GS_DEBUG
    fprintf(stdout, "writing: %s", text);
 #endif
-- 
1.7.4


From 962019bfecd6d4873f68d43a62eb4f0e67d01b70 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomas=20Forss=E9n?= <tomas.forssen at gmail.com>
Date: Wed, 28 Mar 2012 14:14:28 +0100
Subject: [PATCH 6/7] Adapt process controll to windows style.

- vfork & execlp & waitpid -> _spawnl : Should be equivalent
- Remove unistd.h and sys/wait.h : Not existing on windows.
---
 svg.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/svg.c b/svg.c
index 8ba79bb..de50bd4 100644
--- a/svg.c
+++ b/svg.c
@@ -6,11 +6,17 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#ifndef XC_WIN32
 #include <unistd.h>
+#endif
 #include <math.h>
 #include <limits.h>
 #include <sys/stat.h>
+#ifndef XC_WIN32
 #include <sys/wait.h>
+#else
+#include <process.h>
+#endif
 
 #ifndef _MSC_VER
 #include <X11/Intrinsic.h>
@@ -201,7 +207,9 @@ void SVGCreateImages(int page)
        u_long i;
     } pixel;
     char *fname, outname[128], *pptr;
+#ifndef XC_WIN32
     pid_t pid;
+#endif
 
     /* Check which images are used on this page */
     glist = (short *)malloc(xobjs.images * sizeof(short));
@@ -237,12 +245,18 @@ void SVGCreateImages(int page)
        else
 	  strcat(outname, ".png");
 
+#ifndef XC_WIN32
        if ((pid = vfork()) == 0) {
 	  execlp("convert", "convert", fname, outname, NULL);
 	  exit(0);  	/* not reached */
        }
        waitpid(pid, NULL, 0);
        unlink(fname);
+#else
+       _spawnl(_P_WAIT, GM_EXEC, GM_EXEC, "convert", fname, outname, NULL);
+       _unlink(fname);
+#endif
+
        Fprintf(stdout, "Generated standalone PNG image file %s\n", outname);
     }
     free(glist);
-- 
1.7.4


From f35f2ef9ac39f2054425f5d81d527170c6c72d4f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomas=20Forss=E9n?= <tomas.forssen at gmail.com>
Date: Wed, 28 Mar 2012 14:17:36 +0100
Subject: [PATCH 7/7] Typographic change to conform with C declaration rules.

- Declare local variables before the code in a section.
---
 tclxcircuit.c |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/tclxcircuit.c b/tclxcircuit.c
index 047c420..f983310 100644
--- a/tclxcircuit.c
+++ b/tclxcircuit.c
@@ -5576,8 +5576,9 @@ int xctcl_instance(ClientData clientData, Tcl_Interp *interp,
 
       case ObjectIdx:
 	 if ((objc - nidx) == 1) {
-	    numfound = 0;
 	    Tcl_Obj *listPtr;
+	    numfound = 0;
+
 	    for (i = 0; i < areawin->selects; i++) {
 	       if (SELECTTYPE(areawin->selectlist + i) == OBJINST) {
 		  pinst = SELTOOBJINST(areawin->selectlist + i);
@@ -5605,8 +5606,9 @@ int xctcl_instance(ClientData clientData, Tcl_Interp *interp,
 
       case ScaleIdx:
 	 if ((objc - nidx) == 1) {
-	    numfound = 0;
 	    Tcl_Obj *listPtr;
+	    numfound = 0;
+
 	    for (i = 0; i < areawin->selects; i++) {
 	       if (SELECTTYPE(areawin->selectlist + i) == OBJINST) {
 		  pinst = SELTOOBJINST(areawin->selectlist + i);
@@ -5639,8 +5641,9 @@ int xctcl_instance(ClientData clientData, Tcl_Interp *interp,
       case CenterIdx:
 
 	 if ((objc - nidx) == 1) {
-	    numfound = 0;
 	    Tcl_Obj *listPtr, *coord;
+	    numfound = 0;
+
 	    for (i = 0; i < areawin->selects; i++) {
 	       if (SELECTTYPE(areawin->selectlist + i) == OBJINST) {
 		  pinst = SELTOOBJINST(areawin->selectlist + i);
@@ -5688,8 +5691,9 @@ int xctcl_instance(ClientData clientData, Tcl_Interp *interp,
 
       case LineWidthIdx:
 	 if ((objc - nidx) == 1) {
-	    numfound = 0;
 	    Tcl_Obj *listPtr;
+	    numfound = 0;
+
 	    for (i = 0; i < areawin->selects; i++) {
 	       if (SELECTTYPE(areawin->selectlist + i) == OBJINST) {
 		  pinst = SELTOOBJINST(areawin->selectlist + i);
@@ -5736,8 +5740,9 @@ int xctcl_instance(ClientData clientData, Tcl_Interp *interp,
 
       case BBoxIdx:
 	 if ((objc - nidx) == 1) {
-	    numfound = 0;
 	    Tcl_Obj *listPtr, *coord;
+	    numfound = 0;
+
 	    for (i = 0; i < areawin->selects; i++) {
 	       if (SELECTTYPE(areawin->selectlist + i) == OBJINST) {
 		  pinst = SELTOOBJINST(areawin->selectlist + i);
-- 
1.7.4

-------------- next part --------------
make -f Makefile.win32 tcl
make[1]: Entering directory `D:/Users/tomas/Documents/src/xcircuit-3.7.w64'
Making tcl library object
make -f Makefile.win32 lib\tcl\xcircuit.dll
make[2]: Entering directory `D:/Users/tomas/Documents/src/xcircuit-3.7.w64'
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "menudep.c"
menudep.c
cl -Femenudep.exe menudep.obj
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:menudep.exe 
menudep.obj 
.\menudep.exe
cl  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -IC:\app\tclx64\include \
	xcwrap.c -c -Foxcwrap.obj
xcwrap.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "elements.c"
elements.c
d:\users\tomas\documents\src\xcircuit-3.7.w64\elements.c(584) : warning C4700: uninitialized local variable 'strpos' used
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "events.c"
events.c
events.c(6571) : warning C4022: 'SelectObject' : pointer mismatch for actual parameter 2
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "filelist.c"
filelist.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "files.c"
files.c
d:\users\tomas\documents\src\xcircuit-3.7.w64\files.c(1114) : warning C4700: uninitialized local variable 'savebutton' used
d:\users\tomas\documents\src\xcircuit-3.7.w64\files.c(1127) : warning C4700: uninitialized local variable 'savebutton' used
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "flate.c"
flate.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "fontfile.c"
fontfile.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "formats.c"
formats.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "functions.c"
functions.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "graphic.c"
graphic.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "help.c"
help.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "keybindings.c"
keybindings.c
keybindings.c(429) : warning C4047: '=' : 'char *' differs in levels of indirection from 'int'
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "libraries.c"
libraries.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "menucalls.c"
menucalls.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "netlist.c"
netlist.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "ngspice.c"
ngspice.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "opengl.c"
opengl.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "parameter.c"
parameter.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "python.c"
python.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "rcfile.c"
rcfile.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "render.c"
render.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "svg.c"
svg.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "schema.c"
schema.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "selection.c"
selection.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "text.c"
text.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "undo.c"
undo.c
d:\users\tomas\documents\src\xcircuit-3.7.w64\undo.c(751) : warning C4700: uninitialized local variable 'egen' used
d:\users\tomas\documents\src\xcircuit-3.7.w64\undo.c(1273) : warning C4700: uninitialized local variable 'egen' used
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "xcircuit.c"
xcircuit.c
d:\users\tomas\documents\src\xcircuit-3.7.w64\xcircuit.c(186) : warning C4700: uninitialized local variable 'newbutton' used
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "tclxcircuit.c"
tclxcircuit.c
d:\users\tomas\documents\src\xcircuit-3.7.w64\tclxcircuit.c(2039) : warning C4700: uninitialized local variable 'plist' used
d:\users\tomas\documents\src\xcircuit-3.7.w64\tclxcircuit.c(3192) : warning C4700: uninitialized local variable 'value' used
d:\users\tomas\documents\src\xcircuit-3.7.w64\tclxcircuit.c(4375) : warning C4700: uninitialized local variable 'jval' used
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "tkSimple.c"
tkSimple.c
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "w32x11.c"
w32x11.c
del /S /Q lib\xcircuit.dll
cl -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE /LD -Felib\tcl\xcircuit.dll  xcwrap.obj \
	elements.obj events.obj filelist.obj files.obj flate.obj fontfile.obj formats.obj functions.obj graphic.obj help.obj keybindings.obj libraries.obj menucalls.obj netlist.obj ngspice.obj opengl.obj parameter.obj python.obj rcfile.obj render.obj svg.obj schema.obj selection.obj text.obj undo.obj xcircuit.obj tclxcircuit.obj tkSimple.obj w32x11.obj   \
	  ws2_32.lib gdi32.lib user32.lib kernel32.lib comdlg32.lib comctl32.lib C:\app\tclx64\lib\tcl85.lib C:\app\tclx64\lib\tk85.lib  \
	
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

/debug 
/dll 
/implib:lib\tcl\xcircuit.lib 
/out:lib\tcl\xcircuit.dll 
xcwrap.obj 
elements.obj 
events.obj 
filelist.obj 
files.obj 
flate.obj 
fontfile.obj 
formats.obj 
functions.obj 
graphic.obj 
help.obj 
keybindings.obj 
libraries.obj 
menucalls.obj 
netlist.obj 
ngspice.obj 
opengl.obj 
parameter.obj 
python.obj 
rcfile.obj 
render.obj 
svg.obj 
schema.obj 
selection.obj 
text.obj 
undo.obj 
xcircuit.obj 
tclxcircuit.obj 
tkSimple.obj 
w32x11.obj 
ws2_32.lib 
gdi32.lib 
user32.lib 
kernel32.lib 
comdlg32.lib 
comctl32.lib 
C:\app\tclx64\lib\tcl85.lib 
C:\app\tclx64\lib\tk85.lib 
   Creating library lib\tcl\xcircuit.lib and object lib\tcl\xcircuit.exp
make[2]: Leaving directory `D:/Users/tomas/Documents/src/xcircuit-3.7.w64'
make -f Makefile.win32 lib\tcl\xcircuit.bat
make[2]: Entering directory `D:/Users/tomas/Documents/src/xcircuit-3.7.w64'
cl -Zi pp.c
pp.c
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:pp.exe 
/debug 
pp.obj 
pp.exe -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -DXCLIBDIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" \
	-DWRAPPER_INIT=\"xcircuit.tcl\" -DCONSOLE=\"tkcon.tcl\" \
	-DCONSOLE_SCRIPT=\"console.tcl\" \
	-DTCLLIBDIR=\"C:/app/tclx64/lib\" \
	-DWISH_EXE=\"C:/app/tclx64/bin/wish85.exe\" \
	lib/tcl/xcircuit.bat.in > lib\tcl\xcircuit.bat
make[2]: Leaving directory `D:/Users/tomas/Documents/src/xcircuit-3.7.w64'
make -f Makefile.win32 lib\tcl\xcircuit.tcl
make[2]: Entering directory `D:/Users/tomas/Documents/src/xcircuit-3.7.w64'
pp.exe -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -DLIBDIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" \
	lib/tcl/xcircuit.tcl.in > lib\tcl\xcircuit.tcl
make[2]: Leaving directory `D:/Users/tomas/Documents/src/xcircuit-3.7.w64'
make -f Makefile.win32 xcircexec.exe
make[2]: Entering directory `D:/Users/tomas/Documents/src/xcircuit-3.7.w64'
cl -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -I. -I. -IC:\app\tclx64\include  -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE -c "xcircexec.c"
xcircexec.c
xcircexec.c(76) : warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'Tcl_AppInitProc (__cdecl *)'
del /S /Q .\xcircexec.exe
cl -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE  -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -DPROG_VERSION=3.7 -DPROG_REVISION=36 -DCAD_DIR=\"C:/app/xcircuit-tcl-dev\" -DTEMP_DIR=\"D:/Temp\" -DSCRIPTS_DIR=\"C:\app\xcircuit-tcl-dev\xcircuit-3.7\" -DBUILTINS_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DBUILTINS_FILE=\"\" -DUSER_RC_FILE=\".xcircuitrc\" -DPROLOGUE_DIR=\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" -DPROLOGUE_FILE=\"xcircps2.pro\" -DSTARTUP_FILE=\"xcstartup.tcl\" -DLGF_LIB=\"lgf.lps\" -I. -IC:\app\tclx64\include \
	xcircexec.c -Fexcircexec.exe  \
	ws2_32.lib gdi32.lib user32.lib kernel32.lib comdlg32.lib comctl32.lib C:\app\tclx64\lib\tcl85.lib C:\app\tclx64\lib\tk85.lib  
xcircexec.c
xcircexec.c(76) : warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'Tcl_AppInitProc (__cdecl *)'
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

/debug 
/out:xcircexec.exe 
xcircexec.obj 
ws2_32.lib 
gdi32.lib 
user32.lib 
kernel32.lib 
comdlg32.lib 
comctl32.lib 
C:\app\tclx64\lib\tcl85.lib 
C:\app\tclx64\lib\tk85.lib 
make[2]: Leaving directory `D:/Users/tomas/Documents/src/xcircuit-3.7.w64'
make -f Makefile.win32 xcircuit-win32.exe
make[2]: Entering directory `D:/Users/tomas/Documents/src/xcircuit-3.7.w64'
rc -foresources.res -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE /ixccom2 resources.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.1.7600.16385

Copyright (C) Microsoft Corporation.  All rights reserved.


cl -Zi -DSPICE_EXEC=\"ngspice.exe\" -DHAVE_PUTENV -DGS_EXEC=\"C:/app/gs/gs9.02x64/bin/gswin64c.exe\" -DGM_EXEC=\"C:/app/graphicsmagick-1.3.14/gm.exe\" -DXC_WIN32 -DDOUBLEBUFFER -DTCL_WRAPPER -D_CRT_SECURE_NO_DEPRECATE  \
	-DWISH_EXE=L\"C:/app/tclx64/bin/wish85.exe\" \
	-DBUILTINS_DIR=L\"C:/app/xcircuit-tcl-dev/xcircuit-3.7\" \
	-I. -IC:\app\tclx64\include xcircuit-win32.c resources.res \
	-Fexcircuit-win32.exe  ws2_32.lib gdi32.lib user32.lib kernel32.lib comdlg32.lib comctl32.lib C:\app\tclx64\lib\tcl85.lib C:\app\tclx64\lib\tk85.lib   shell32.lib advapi32.lib
xcircuit-win32.c
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

/debug 
/out:xcircuit-win32.exe 
xcircuit-win32.obj 
resources.res 
ws2_32.lib 
gdi32.lib 
user32.lib 
kernel32.lib 
comdlg32.lib 
comctl32.lib 
C:\app\tclx64\lib\tcl85.lib 
C:\app\tclx64\lib\tk85.lib 
shell32.lib 
advapi32.lib 
make[2]: Leaving directory `D:/Users/tomas/Documents/src/xcircuit-3.7.w64'
make[1]: Leaving directory `D:/Users/tomas/Documents/src/xcircuit-3.7.w64'


More information about the Xcircuit-dev mailing list