Unresolved External Symbol

The engine.
Post Reply
chiva
Posts: 1
Joined: Wed Feb 17, 2016 3:09 pm

Unresolved External Symbol

Post by chiva »

Hi,
I copied pasted the tutorial code and have the following error after compiling under VS 2015 and W10 with the latest smile files (smile_vc14_x64.zip).

1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: int __thiscall DSL_doubleArray::SetSize(int)" (?SetSize@DSL_doubleArray@@QAEHH@Z)
1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: void __thiscall DSL_doubleArray::CleanUp(void)" (?CleanUp@DSL_doubleArray@@QAEXXZ)
1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall DSL_object::CleanUp(int)" (?CleanUp@DSL_object@@UAEXH@Z)
1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall DSL_array::CleanUp(int)" (?CleanUp@DSL_array@@UAEXH@Z)
1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall DSL_stringArray::CleanUp(int)" (?CleanUp@DSL_stringArray@@UAEXH@Z)
1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: __thiscall DSL_network::DSL_network(void)" (??0DSL_network@@QAE@XZ)
1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall DSL_network::~DSL_network(void)" (??1DSL_network@@UAE@XZ)
1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: int __thiscall DSL_network::AddNode(int,char const *)" (?AddNode@DSL_network@@QAEHHPBD@Z)
1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: __thiscall DSL_idArray::DSL_idArray(bool)" (??0DSL_idArray@@QAE@_N@Z)
1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall DSL_idArray::Add(char const *)" (?Add@DSL_idArray@@UAEHPBD@Z)
1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: void __thiscall DSL_stringArray::Flush(void)" (?Flush@DSL_stringArray@@QAEXXZ)
1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: int __thiscall DSL_network::AddArc(int,int,enum dsl_arcType)" (?AddArc@DSL_network@@QAEHHHW4dsl_arcType@@@Z)
1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: __thiscall DSL_sysCoordinates::DSL_sysCoordinates(class DSL_nodeDefinition &)" (??0DSL_sysCoordinates@@QAE@AAVDSL_nodeDefinition@@@Z)
1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: double & __thiscall DSL_sysCoordinates::UncheckedValue(void)" (?UncheckedValue@DSL_sysCoordinates@@QAEAANXZ)
1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: int __thiscall DSL_sysCoordinates::Next(void)" (?Next@DSL_sysCoordinates@@QAEHXZ)
1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: int __thiscall DSL_network::WriteFile(char const *,int,void *)" (?WriteFile@DSL_network@@QAEHPBDHPAX@Z)
1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall DSL_stringArray::CheckReadiness(int)" (?CheckReadiness@DSL_stringArray@@UAEXH@Z)
1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall DSL_stringArray::SetString(int,char const *)" (?SetString@DSL_stringArray@@UAEHHPBD@Z)
1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall DSL_stringArray::Add(char const *)" (?Add@DSL_stringArray@@UAEHPBD@Z)
1>Genie_DBN_v1.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall DSL_stringArray::Insert(int,char const *)" (?Insert@DSL_stringArray@@UAEHHPBD@Z)

I have added the required directory pointing to the libraries as well as the "_SECURE_SCL=0" in the preprocessor definitions. I had a look in older topics, could it be a problem related to the compatibility between VS and smile ?
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: Unresolved External Symbol

Post by shooltz[BayesFusion] »

> Could it be a problem related to the compatibility between VS and smile ?

Not if you're using binaries from smile_vc14_x64.zip. Are you including smile.h in your program?

BTW, SMILE and GeNIe have a new home at http://www.bayesfusion.com. Please post further questions at forum at that website.
Post Reply