Errors while compiling jSMILE

The engine.
Post Reply
orzech
Posts: 51
Joined: Wed Aug 04, 2010 11:40 pm

Errors while compiling jSMILE

Post by orzech » Tue Jun 05, 2012 4:34 pm

Hi,

when trying to compile jSMILE from available sources (http://genie.sis.pitt.edu/download/jsmile_src.zip, December 19, 2011) with latest SMILE (http://genie.sis.pitt.edu/download/smil ... s_vc10.zip, April 24, 2012) I get following error (Win32, both Debug and Release, VS2010):

Code: Select all

1>smile.lib(general.obj) : error LNK2005: "void __cdecl AppendInt(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,int)" (?AppendInt@@YAXAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) already defined in jsmile.obj
1>     Creating library Release\jsmile.lib and object Release\jsmile.exp
1>Release\jsmile.dll : fatal error LNK1169: one or more multiply defined symbols found
It seems that jSMILE code is outdated. As shown above, AppendInt function addition in new version of general.h is part of the problem, but I guess there are other conflicting changes in current version of SMILE (btw, what about its changelog?) Can you please take a look?

Cheers

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

Re: Errors while compiling jSMILE

Post by shooltz[BayesFusion] » Wed Jun 06, 2012 12:48 pm

Thanks for reporting the problem. In the short term, remove the declaration and the body of the AppendInt function from jsmile.h/.cpp. We'll fix this problem in the next release (around mid-June).

orzech
Posts: 51
Joined: Wed Aug 04, 2010 11:40 pm

Re: Errors while compiling jSMILE

Post by orzech » Wed Jun 06, 2012 3:21 pm

Thanks for the advice, it's building now. I was wrong about the other conflicting changes, I must have missed something before. Still, waiting for the next release.

Regards

Post Reply