[Ffll-devel] FFLL/AIWisdom demo issues under Linux
Brought to you by:
michaelz
|
From: <emi...@en...> - 2006-09-01 19:47:52
|
Hello,
I'm attempting to get the AIWisdom demo up and running under linux. I've
been able to build both on my dev box and have resolved a few of the
portability issues I've come across, but i've run into one that's
confusing me.
When I run the AIWisdom demo application it begins to parse the fcl file
and works fine (with some minor tweaks for linux) up untill it goes to
parse the Rules section.
in
int FuzzyModelBase::load_rules_from_fcl_file(std::ifstream& file_contents=
)
near the lines ~1890
// parse it...
char seps[] =3D " :;\t\n\r";
// right now we only care about the first part (before the colon)...
char* operation =3D strtok(line, seps);
// right now we only support 'and'
if (strncmp(operation, "AND", strlen("AND")) =3D=3D 0)
{
I receive a segfault because 'operation' is set to 0x0 (NULL) from strtok
and then passed to strncmp (which is where the segfault occurs). I
apoligise for not having specific line numbers as I have added some
includes and fixed some linux compatability issues already in this file.
My goal with this work is to port FFLL to Linux and provide a wrapper to
Python and will be happy to contribute my work in this respect. I've
noticed quite a few users are trying to get this going under linux and if
i'm going to do the work anyways, others might as well benefit form it.
please let me know if you would like any additional information. At this
point i'm a bit stumped but perhaps lunch will remedy that.
Eamon Millman
|