or open MS Visual Studio 2010 and select that file.
without errors. Pretty fast actually.
(similar to Git or Subersion or CVS).
You don't have to login or have an acct to get a branch.
In detail ...
Run the setup.exe file to install Bazaar.
Run the Bazaar Explorer (usually the icon on the desktop).
Click the 'Get project source from elsewhere' bar.
Click the 'Branch' icon (blue folder).
In 'To' enter or browse to a dir where you want the code to go.
Click OK.
'destination is outside a shared repository. Would you like to
Click Yes. Then click OK to initialize.
Click 'Close' when it's done.
Now you're back at the Branch window:
click 'OK' to get the code.
It takes about 10 seconds before it starts downloading
and a green status bar will appear.
The download is 85MB so it may take a few minutes
(50MB of this is a couple MS SQL .sdf files).
Click 'Close' when it's done.
Close the Bazaar Explorer.
Open the VC++ project by clicking on the
trunk/link-grammar/link-grammer.vcproj file.
(Or open it directly from Visual Studio 2010.)
Pulling a branch resets all of the file
modified dates, but here's what I modified.
(Just do a search for 'BHayes' in the files -
I believe I marked every edit that I made.)
According to my notes I only modified
utilities.c
to get the basic Link Grammar to work (no Corpus Stats).
To get Corpus Statistics to work I modified:
api.c
api-structures.h
cluster.c
cluster.h
corpus.c
corpus.h
expand.c
link-parser.c
print.c
FYI, here are my notes as I debugged the Corpus Stats problems.
-- corpus.h, .c --
I downloaded and moved to /corpus sqlite3.h and sqlite3.c
corpus.h I added #define USE_CORPUS b/c seems like what we want and w/o it the selected code does not compile
corpus.c changed #include <sqlite3.h> to #include "sqlite3.h"
-- sqlite.c --
added it to project (did NOT edit .c or .h)
It compiled.
-- cluster.h, .c --
cluster.h I added #define USE_CORPUS
cluster.c changed #include <sqlite3.h> to #include "sqlite3.h"
Huge number of errors due to var types declared throughout code instead of at top of blocks
Also a lot of 'char' instead of 'const char'
Changed '#if USE_CORPUS' to '#ifdef USE_CORPUS'
in api.c, print.c,
Compiled!
#ifdef USE_CORPUS only used in:
api.c, api-structures.h, corpus.h, clusters.h
Add #define USE_CORPUS to 'api-structures.h' and re-compiled.
Project with sqlite3 compiles!
db didn't open (but linkparser still runs and prints some of the lines)
Change #define DBNAME "sql/disjuncts.db" in 'corpus.c'
to have backslash #define DBNAME "sql\disjuncts.db"
recompile, ugh - it looked for "sqldisjuncts.db"
because it used '\' as an escape
Change "sql\disjuncts.db" to "sql\\disjuncts.db"
(double '\' so it does not escape it)
Compiles w/o error.
Runs link-grammar example!
- - - - - - - - - - - - - - - -