I'm trying to use the original som implementation by Kohonen but I'm getting a segmentation fault error using vcal.
It turns out that you can use an unofficial version which corrects this error found at http://cis.legacy.ics.tkk.fi/hynde/lvq/ but its from 1997, i'm sure that there are a lot of changes in cc compiler so I'm getting this error
checo@canija:~/bin/som/som_pak-3.2$ make gcc -O2 -c -o vcal.o vcal.c In file included from datafile.h:28, from vcal.c:26: fileio.h:69: error: conflicting types for ‘getline’ /usr/include/stdio.h:651: note: previous declaration of ‘getline’ was here make: *** [vcal.o] Error 1 checo@canija:~/bin/som/som_pak-3.2$
The file datafile.h
1:#ifndef SOMPAK_DATAFILE_H 2:#define SOMPAK_DATAFILE_H ... 24:#include 25:#include 26:#include "lvq_pak.h" 27:#include "errors.h" 28:#include "fileio.h"
Is there anything I can do to recomple this code?