I have spent a few hours trying to figure out how to use this PSim library.
I tried using it with Java but got some error about using a 32-bit DLL on a 64-bit system, decided to just move to c++ because I have more experience using it.
I managed to do something with poker-eval-138 using cygwin then I compiled PSim as a static library (I think, I ended up with a .lib)
Now I used '#include "psim.hpp"' in my program and when trying to use the SimulateHand function as he gives in the examples, I get these errors:
Code:
1>psim.lib(psim.obj) : error LNK2001: unresolved external symbol _StdDeck_cardMasksTable
1>psim.lib(simulate.obj) : error LNK2001: unresolved external symbol _topFiveCardsTable
1>psim.lib(simulate.obj) : error LNK2001: unresolved external symbol _StdDeck_stringToCard
1>psim.lib(simulate.obj) : error LNK2001: unresolved external symbol _topCardTable
1>psim.lib(simulate.obj) : error LNK2001: unresolved external symbol _straightTable
1>psim.lib(simulate.obj) : error LNK2001: unresolved external symbol _nBitsTable
1>psim.lib(simulate.obj) : error LNK2001: unresolved external symbol "unsigned char * nBitsAndStrTable" (?nBitsAndStrTable@@3PAEA)
I think these belong to the poker-eval library, so I must have done something wrong.
I didn't end up with a .lib for poker-eval, I just did './configure make install' with cygwin and linked my Visual Studio to the 'include' and 'lib' directories for it.
I'm not sure why I am finding this whole library stuff so confusing.
Thanks for reading.Statistics: Posted by Corphorr — Wed Apr 02, 2014 5:30 pm
]]>