[Snowball-discuss] Problem with compiling Snowball under Visual C++

From: Charlie Hull (charlie@lemurconsulting.com)
Date: Fri Oct 31 2003 - 16:47:01 GMT

Hi Martin & all,

I've been trying to get Snowball working using Microsoft Visual C++ and have
encountered a couple of small problems:

1. All the individual stemmers are held in files called 'stem.c'. This means
that Visual C++ attempts to compile them into object files called 'stem.obj'
and then gets most confused at link time. I can get round this by some
automated renaming of the sources so it's not a huge problem.

2. In most of the stem.c files there are structures as follows:

   case 12:
        if(something) then goto lab4;
        [do something to be skipped]
        lab4: <--- compiler error here "missing ';' before '}"

If I add a ';' just after the label then the compiler is happy. Does anyone
have any comment? I'm not very familiar with Snowball so apologies for any

Thanks in advance

Charlie Hull

Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/2003

This archive was generated by hypermail 2.1.3 : Thu Sep 20 2007 - 12:02:45 BST