Unsolved External Symbols - Window 7 x64 Visual Studio 2012

The engine.
Post Reply
petcai
Posts: 20
Joined: Fri Nov 01, 2013 1:22 am

Unsolved External Symbols - Window 7 x64 Visual Studio 2012

Post by petcai »

I got

------ Rebuild All started: Project: LOS, Configuration: Release x64 ------
main.cpp
main.obj : error LNK2001: unresolved external symbol "void __cdecl InfereceWithBayesNet(void)" (?InfereceWithBayesNet@@YAXXZ)
main.obj : error LNK2001: unresolved external symbol "void __cdecl CreateNetwork(void)" (?CreateNetwork@@YAXXZ)
main.obj : error LNK2001: unresolved external symbol "void __cdecl InferenceWithInfluenceDiagram(void)" (?InferenceWithInfluenceDiagram@@YAXXZ)
main.obj : error LNK2001: unresolved external symbol "void __cdecl UpgradeToInfluenceDiagram(void)" (?UpgradeToInfluenceDiagram@@YAXXZ)
main.obj : error LNK2001: unresolved external symbol "void __cdecl ComputeValueOfInformation(void)" (?ComputeValueOfInformation@@YAXXZ)
C:\Users\Peter Cai\Documents\Visual Studio 2012\Projects\DBN\x64\Release\LOS.exe : fatal error LNK1120: 5 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

My setting:

Additional Invlude Directories: C:\Users\Peter Cai\Documents\libs\smile_vc11_x64
Additional Library Directories: C:\Users\Peter Cai\Documents\libs\smile_vc11_x64
Additional Dependencies:

What did I do wrong? Thanks.
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: Unsolved External Symbols - Window 7 x64 Visual Studio 2

Post by shooltz[BayesFusion] »

What did I do wrong? Thanks.
Your LNK2001's are not related to SMILE. We definitely don't have a function called "InfereceWithBayesNet".
Martijn
Posts: 76
Joined: Sun May 29, 2011 12:23 am

Re: Unsolved External Symbols - Window 7 x64 Visual Studio 2

Post by Martijn »

I've seen that typo before, it's tutorial code.

What does your main code look like Peter?

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

Re: Unsolved External Symbols - Window 7 x64 Visual Studio 2

Post by shooltz[BayesFusion] »

Martijn wrote:I've seen that typo before, it's tutorial code.
Tutorial or not, it's not in the library itself, hence I suspect a problem not related to SMILE.
petcai
Posts: 20
Joined: Fri Nov 01, 2013 1:22 am

Re: Unsolved External Symbols - Window 7 x64 Visual Studio 2

Post by petcai »

Thanks, Shooltz and Martijn. I forgot to include other functions in the tutorial into the project, which caused the errors. The libraries actually work well.
Post Reply