Cannot compile sample code with smilearn linux64_gcc_4_1_2

The engine.
Post Reply
masqnq
Posts: 3
Joined: Fri Dec 25, 2009 7:04 pm

Cannot compile sample code with smilearn linux64_gcc_4_1_2

Post by masqnq »

Trying to compile sample code from the wiki generates linker errors

BNSimplifier.cpp: In function ‘void PrintDataset(const DSL_dataset&)’:
BNSimplifier.cpp:15: error: ‘const class DSL_dataset’ has no member named ‘NumVariables’
BNSimplifier.cpp:16: error: ‘const class DSL_dataset’ has no member named ‘NumVariables’

BNSimplifier.cpp:52: error: ‘const class DSL_dataset’ has no member named ‘At’
BNSimplifier.cpp:54: error: ‘const class DSL_dataset’ has no member named ‘At’


among others ...

I have inspected libsmilearn with nm and I see no sign of these methods in there. Is there something wrong with the library? Perhaps it is an older version. I would appreciate any help.

Thanks.
shooltz[BayesFusion]
Site Admin
Posts: 1457
Joined: Mon Nov 26, 2007 5:51 pm

Re: Cannot compile sample code with smilearn linux64_gcc_4_1

Post by shooltz[BayesFusion] »

Unfortunately, the code in the documentation is outdated. Use DSL_dataset::GetNumberOfVariables instead of NumVariables. The DSL_dataset::At was replaced by GetInt and GetFloat.
Post Reply