|
How To - Build libpoker using MS VC++ 7
======================================
Download:
poker-eval-src-121.tar.gz
poker-eval-124.0.tar.gz
Decompress version 121 and then 124 over the top of it, as the later
one is missing a few files.
Edit: include\pokereval_export.h
=====================================
@L43
- ifdef POKEREVAL_LIBRARY
+ // ifdef POKEREVAL_LIBRARY
@44
- // # define POKEREVAL_EXPORT __declspec(dllexport)
+ # define POKEREVAL_EXPORT __declspec(dllexport)
@45
- # define POKEREVAL_EXPORT
+ # define RANDOM rand
@47
- # else
- # define POKEREVAL_EXPORT "C"__declspec(dllimport)
- # define POKEREVAL_EXPORT "C"
- # endif /* POKEREVAL_LIBRARY */
@53
+ #define RANDOM random
====================================
Edit: include\enumerate.h
====================================
@L97
+ #include "pokereval_export.h"
@98
- #ifdef WIN32
+ /*#ifdef WIN32
@L100
- #endif
+ #endif*/
====================================
cd C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\
vcvars32.bat
cd \poker-eval\lib\
nmake -f makefile.dos
A dumpbin libpoker.dll /exports, should yield 64 ordinals for you to
begin writing your wrappers.
|