I'm trying use the dll and lib file with visual c++. I copied both
the dll and the lib file into my project directory, added the lib
file to my project and specified libpoker.lib in the project
settings - object/library modules. I then copied in code from eval.c:
int gNCards;
CardMask gCards;
HandVal handval;
gNCards = 0;
CardMask_RESET(gCards);
handval = Hand_EVAL_N(gCards, gNCards);
When I build, it compiles without problem, but produces the following
errors in the link phase:
Linking...
PokerGame.obj : error LNK2001: unresolved external symbol "unsigned
char * straightTable" (?straightTable@@3PAEA)
PokerGame.obj : error LNK2001: unresolved external symbol "unsigned
char * nBitsTable" (?nBitsTable@@3PAEA)
Release/PokerPlayer.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
Does anyone (especially those who have gotten the library to work
with visual C++) have any thoughts on why this is occuring?
Thanks,
Nate