<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2657.73">
<TITLE>Building Alpha 2.2 (VIC) source under Windows XP and VS .NET</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Courier New">I am trying to compile the VIC source files for the the Alpha 2.2 release of the Access Grid Toolkit - I was hoping that someone could help me out.&nbsp; Using the Visual Studio .Net 2003 (VC7) projects, I get syntax errors on compilation of the tcl2c generated C files...(note: TCL/TK 8.0 binaries are already installed on my system)</FONT></P>

<P><FONT COLOR="#000000" SIZE=2 FACE="Courier New">For example, in the TCLLIB and TKLIB projects the following errors are generated on compilation:</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">&nbsp; ......\ag-media\tcl-8.0\win\lib_word.c(3): error C2059: syntax error : '}'</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; ......\ag-media\tcl-8.0\win\lib_safe.c(3): error C2059: syntax error : '}'</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; ......\ag-media\tcl-8.0\win\lib_parray.c(3): error C2059: syntax error : '}'</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; ......\ag-media\tcl-8.0\win\lib_optparse.c(3): error C2059: syntax error : '}'</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; ......\ag-media\tcl-8.0\win\lib_ldAout.c(3): error C2059: syntax error : '}'</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; ......\ag-media\tcl-8.0\win\lib_init.c(3): error C2059: syntax error : '}'</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; ......\ag-media\tcl-8.0\win\lib_http.c(3): error C2059: syntax error : '}'</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; ......\ag-media\tcl-8.0\win\lib_history.c(3): error C2059: syntax error : '}'</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; ......\ag-media\tk-8.0\win\lib_xmfbox.c(3): error C2059: syntax error : '}'</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; ......\ag-media\tk-8.0\win\lib_tkfbox.c(3): error C2059: syntax error : '}'</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; ......\ag-media\tk-8.0\win\lib_tk.c(3): error C2059: syntax error : '}'</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; ......\ag-media\tk-8.0\win\lib_text.c(3): error C2059: syntax error : '}'</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; ...</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">If I modify any of these files and enter a character place holder in between the curly braces and recompile, the files compile fine; for example:</FONT></P>

<P><FONT COLOR="#000000" SIZE=2 FACE="Courier New">&nbsp; ORIGINAL LIB_HISTORY.C (gives syntax errors)</FONT>
<BR><FONT COLOR="#000000" SIZE=2 FACE="Courier New">&nbsp; char</FONT><FONT SIZE=2 FACE="Courier New"> lib_history[] = {};</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">&nbsp; MODIFIED LIB_HISTORY.C (compiles fine)</FONT>
<BR><FONT COLOR="#000000" SIZE=2 FACE="Courier New">&nbsp; char</FONT><FONT SIZE=2 FACE="Courier New"> lib_history[] = {'\0'};</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">Because the TCL/TK 8.0 binaries are already installed on my system, I have tried to bypass the compilation of TCLLIB &amp; TKLIB; however this results in a &quot;[</FONT><FONT SIZE=2 FACE="Courier New">mkcube]</FONT> <FONT SIZE=2 FACE="Courier New">usage error at the custom build step&quot; of the compilation process.&nbsp; (Note: I have managed to get a previous version of VIC to compile (libraries and all) with VC6 -&gt; VC7 gives the same problems as above with the previous version)</FONT></P>

<P><FONT SIZE=2 FACE="Courier New">How would I go about fixing these errors and compiling the VIC code?&nbsp; Any help you can give, would be appreciated.&nbsp; Thanks!</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Siraj</FONT>
</P>

</BODY>
</HTML>