All pastes #948405 Raw Edit

Untitled

public text v1 · immutable
·published 2008-03-19 02:41 UTC
rendered paste body
///////////////////////////////////////////////////////////////
#include        <stdio.h>
#include        <stdlib.h>
#include        <string.h>
#include        <signal.h>

#include        <poker-eval/poker_defs.h>
#if defined(_MSC_VER) || defined(__MINGW32__) || defined( __BCPLUSPLUS__)  || defined( __MWERKS__)
#include        "getopt_w32.h"
#else
#include        <getopt.h>
#endif
#include        <poker-eval/inlines/eval.h>
///////////////////////////////////////////////////////////////


 $ gcc five_card_hands.c -lpoker-eval -o foobar 
In file included from /usr/include/poker-eval/game_std.h:27,
                 from /usr/include/poker-eval/poker_defs.h:85,
                 from five_card_hands.c:27:
/usr/include/poker-eval/rules_std.h:29:30: error: pokereval_export.h: No such file or directory
In file included from five_card_hands.c:33:
/usr/include/poker-eval/inlines/eval.h:24:24: error: poker_defs.h: No such file or directory
 $ gcc five_card_hands.c -lpoker-eval -o foobar -I/usr/include/poker-eval
 $ ./foobar 
NoPair  :  1302540
OnePair :  1098240
TwoPair :  123552
Trips   :  54912
Straight:  10200
Flush   :  5108
FlHouse :  3744
Quads   :  624
StFlush :  40