Re: A quick how to for windows...
Now I get a different error:
C:\pokereval\lib>nmake -f makefile.dos
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
cl -O1 -nologo -DNDEBUG -MD -DMSDOS -I../include -c
mktab_basic.c
mktab_basic.c
c:\pokereval\include\pokereval_export.h(47) : fatal error C1022:
expected #endif
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
Here is my pokereval_export.h code:
/*
* Copyright (C) 2004 Mekensleep
*
* Mekensleep
* 24 rue vieille du temple
* 75004 Paris
*
licensing@...
*
* This program is free software; you can redistribute it and/or
modify
* it under the terms of the GNU General Public License as published
by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-
1307, USA.
*
* Authors:
* Loic Dachary <
loic@...>
*
*/
#ifndef LIBPOKEREVAL_EXPORT
#define LIBPOKEREVAL_EXPORT 1
#if defined(_MSC_VER)
#pragma warning( disable : 4244 )
#pragma warning( disable : 4251 )
#pragma warning( disable : 4267 )
#pragma warning( disable : 4275 )
#pragma warning( disable : 4290 )
#pragma warning( disable : 4786 )
#pragma warning( disable : 4305 )
#endif
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__)
|| defined( __BCPLUSPLUS__) || defined( __MWERKS__)
// # ifdef POKEREVAL_LIBRARY
# define POKEREVAL_EXPORT __declspec(dllexport)
# define RANDOM rand
# else
#else
# define POKEREVAL_EXPORT
#endif
#define RANDOM random
#endif