Search the web
Sign In
New User? Sign Up
pokersource · Poker Source
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
visual c++ 6.0 - link error. Any thoughts?   Message List  
Reply | Forward Message #85 of 355 |
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




Sat Mar 6, 2004 3:59 am

nmcmurtr
Offline Offline
Send Email Send Email

Forward
Message #85 of 355 |
Expand Messages Author Sort by Date

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...
Nate McMurtray
nmcmurtr
Offline Send Email
Mar 6, 2004
3:59 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help